Récupérer les attributs d'un fichier XML
bonjour a tous,
j'ai ce doc xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
<?xml version="1.0" encoding="UTF-8"?>
<article>
<name id="527453">Flowchart</name>
<conversionwarning>0</conversionwarning><body>
<section>
<p>
Flowcharts were used historically in
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="41961.xml">
electronic data processing
</link>to represent the conditional logic of computer programs. With the emergence of
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="27695.xml">
structured programming
</link> and
</p>
</section>
<section>
There are various packages for creating flowcharts, according to different standards. The most common is
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="32169.xml">
UML
</link>, for which there are abundant packages for various platforms. See
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="32169.xml">
UML article
</link> for list. The creation of simple flowcharts on a computer is fairly easy with any vector-based drawing program, but Microsoft Word (versions 97 through 2003) and
</section>
</body>
</article> |
je veux récupérer : juste les attributs de section[1] exactement : les attributs de toutes les balises <link> qui se trouvent dans cette section[1]
et les attributs en question : "41961.xml" et "27695.xml"
mais le chemin diffère d'un doc a un autres c'est à dire dans un autres doc : le chemin peut être section[2]/paragraphe[3] par exemple.
merci pour votre aide.