Article View: fr.comp.text.xml
Article #8462problème amusant
From: David GRAVOT
Date: Wed, 03 Oct 2001 15:30
Date: Wed, 03 Oct 2001 15:30
28 lines
2199 bytes
2199 bytes
Bonjour � tous, voici un fichier XML origine : <?xml version="1.0" encoding="ISO-8859-1"?> <CTOACTIVITY name="Absences" id="6448352"> <CTOACTIVITY name="Travail pour mod�le" id="6447926"> <CTOACTIVITY name="Ouv/Ferm" id="6447917"> <CTOACTIVITY name="Ouverture" id="6447923"></CTOACTIVITY> <CTOACTIVITY name="Fermeture" id="6447920"></CTOACTIVITY> </CTOACTIVITY> </CTOACTIVITY> </CTOACTIVITY> Je souhaite le moyen le + simple de l'afficher sous la forme <?xml version="1.0" encoding="ISO-8859-1"?> <Absences name="Absences" id="6448352"><Travailpourmod�le name="Travail pour mod�le" id="6447926"><OuvFerm name="Ouv/Ferm" id="6447917"><Ouverture name="Ouverture" id="6447923"/><Fermeture name="Fermeture" id="6447920"/></OuvFerm></Travailpourmod�le></Absences> C'est � dire que le nom de balise g�n�rique CTOACTIVITY soit remplac� automatiquement par le nom de l'attribut name et que celui-ci soit d�truit. Je vois bien une solution en script DOM mais n'est-ce pas trop long si le fichier de d�part est volumineux ? Merci David
Technical Details
Message-ID:
<U8Gu7.1067$T3.108650@tengri.easynet.fr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-hub.siol.net!zur.uu.net!ash.uu.net!easynet-fr!tengri.easynet.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,9317fbb3fa62c9ba,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-10-03 08:30:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-hub.siol.net!zur.uu.net!ash.uu.net!easynet-fr!tengri.easynet.fr!not-for-mail From: "David GRAVOT" <dgravot@temposoft.fr> Newsgroups: fr.comp.text.xml Subject: problème amusant Lines: 29 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <U8Gu7.1067$T3.108650@tengri.easynet.fr> Date: Wed, 3 Oct 2001 17:30:29 +0200 NNTP-Posting-Host: 212.180.93.226 X-Complaints-To: abuse@easynet.fr X-Trace: tengri.easynet.fr 1002122932 212.180.93.226 (Wed, 03 Oct 2001 17:28:52 MET DST) NNTP-Posting-Date: Wed, 03 Oct 2001 17:28:52 MET DST Organization: [Posted via] Easynet France