Bonjour,
Voila j'ai parser ce genre de xml. J'ai déjà réaliser le parsage dans une appli sous windows cependant maintenant j'essaye de porter le code sur un pda avec visual studio. Cependant j'avais utiliser la librairie XPathDocument qui n'est pas disponible sur PDA. Je pense qu'il faut utiliser XmlDocument et XmlNodeList mais je ne les ai jamais utiliser. Je veux récupérer certain attribut pas tous. Un exemple m'aiderai vraiment. merci beaucoup
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <?xml version="1.0" encoding="UTF-8"?> <xmlPage> <Information> <version att1="5" att2="18" att3="75" att4="false" /> <test> <first att5="1" /> <second date="2009-05-17T07:00+0200" att6="10" att7="1" att8="5" /> <three /> </test> <others att9="0.0" att10="9.0" att11="0.0" /> </Information> <Information> <version att1="15" att2="8" att3="75" att4="true" /> <test> <first att5="1" /> <second date="2009-05-17T14:00+0200" att6="3" att7="3" att8="2" /> <three /> </test> <others att9="31" att10="91" att11="90" /> </Information> </xmlPage>
Partager