Article View: fr.comp.text.xml
Article #10590Re: recherche dans un document xml
From: (TOM)
Date: Tue, 12 Sep 2000 21:17
Date: Tue, 12 Sep 2000 21:17
28 lines
2027 bytes
2027 bytes
lionel a �crit dans <Ha7v5.1945$tS6.5390482@nnrp2.proxad.net> > Pour produire un affichage, j'ai besoin de trouver dans un document xml > une valeur que je recherche. > Exemple:je voudrais retrouver la valeur "titi" de l'�l�ment "nom" et > avoir acc�s � ses fils (dans une collection):prenom:"jean",.... > > <xml> > [...] > <enreg> > <nom>titi</nom> > <prenom>jean</prenom> > ...etc > </enreg> > </xml> > > Comment faire? y a t-il une solution simple? Avec quoi ? Une interface SAX me semble la plus adapt�e en tous cas. XSLT devrait pouvoir le faire aussi, mais avec le m�me probl�me qu'avec le DOM : construction d'un arbre en m�moire repr�sentant la totalit� du document alors qu'on n'en a besoin que d'une partie. (TOM) -- Si je suis compl�tement "out", c'est normal, je rentre de vacances et j'y retourne...
Technical Details
Message-ID:
<t3xv5.2150$Sn5.3055680@nnrp5.proxad.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!xfer13.netnews.com!netnews.com!oleane.net!oleane!proxad.net!feeder2.proxad.net!nnrp5.proxad.net.POSTED!not-for-mailReferences:
<Ha7v5.1945$tS6.5390482@nnrp2.proxad.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,e3e027d7c61e4eac X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2000-09-12 14:17:18 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!xfer13.netnews.com!netnews.com!oleane.net!oleane!proxad.net!feeder2.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail From: "(TOM)" <ptittom@free.fr> Newsgroups: fr.comp.text.xml References: <Ha7v5.1945$tS6.5390482@nnrp2.proxad.net> Subject: Re: recherche dans un document xml 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 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: <t3xv5.2150$Sn5.3055680@nnrp5.proxad.net> Date: Tue, 12 Sep 2000 21:17:13 GMT NNTP-Posting-Host: 164.138.57.36 X-Complaints-To: abuse@proxad.net X-Trace: nnrp5.proxad.net 968793433 164.138.57.36 (Tue, 12 Sep 2000 23:17:13 CEST) NNTP-Posting-Date: Tue, 12 Sep 2000 23:17:13 CEST Organization: Guest of ProXad - France