xpath Dom

<[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <014b01c68964$274b50a0$0201a8c0@JARLIER>
Salut!

Je cherche à récupérer tous les enfants, petits enfants et sous petits
enfants... etc d'un nœud dans mon XML.

Par exemple si j'ai cet XML: quel est le meilleur xpath à utiliser (en
utilisant DOM) pour récupérer tous les sous fils de id=1 c'est-à-dire
FR2,FR3,FR4 ?

<root>
	<children>
		<child id=1>
			<labels>
				<label lang="fr">FR1</label>
				<label lang="en">EN1</label>
			</labels>
			<children>
				<child id=2>
					<labels>
						<label lang="fr">FR2</label>
						<label lang="en">EN2</label>
					</labels>
				</child>
				<child id=3>
					<labels>
						<label lang="fr">FR3</label>
						<label lang="en">EN3</label>
					</labels>
					<children>
						<child id=4>
							<labels>
								<label
lang="fr">FR4</label>
								<label
lang="en">EN4</label>
							</labels>
						</child>
					</children>
				</child>
			</children>
		</child>
	</children>
	<children>
		<child id=5>
			<labels>
				<label lang="fr">FR5</label>
				<label lang="en">EN5</label>
			</labels>
		</child>
	</children>
</root>

Merci d'avance pour votre aide.
Sophie
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.