Bonjour
je voudrai extraire les valeurs des noeuds (P_YCATCOD,P_YCATDES,P_FCY,P_YDATDEB,P_YDATFIN,P_IMG) pour pouvoir les stocker dans des variable local
Merci de bien vouloir m aider
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
22
23
24
25
26
27
28
29
30
31
32 <?xml version="1.0" encoding="UTF-8"?> <RESULT> <TAB DIM="999" ID="GRP1" SIZE="3"> <LIN NUM="1"> <FLD NAME="P_YCATCOD" TYPE="Char">CAT01</FLD> <FLD NAME="P_YCATDES" TYPE="Char">Catalogue1</FLD> <FLD NAME="P_FCY" TYPE="Char">SIG</FLD> <FLD NAME="P_YDATDEB" TYPE="Date">20140101</FLD> <FLD NAME="P_YDATFIN" TYPE="Date">20141231</FLD> <FLD NAME="P_IMG" TYPE="Char"/> </LIN> <LIN NUM="2"> <FLD NAME="P_YCATCOD" TYPE="Char">CAT02</FLD> <FLD NAME="P_YCATDES" TYPE="Char">Catalogue2</FLD> <FLD NAME="P_FCY" TYPE="Char">SIG</FLD> <FLD NAME="P_YDATDEB" TYPE="Date">20140101</FLD> <FLD NAME="P_YDATFIN" TYPE="Date">20141231</FLD> <FLD NAME="P_IMG" TYPE="Char"/> </LIN> <LIN NUM="3"> <FLD NAME="P_YCATCOD" TYPE="Char">CAT03</FLD> <FLD NAME="P_YCATDES" TYPE="Char">Catalogue3</FLD> <FLD NAME="P_FCY" TYPE="Char">SIG</FLD> <FLD NAME="P_YDATDEB" TYPE="Date">20140101</FLD> <FLD NAME="P_YDATFIN" TYPE="Date">20141231</FLD> <FLD NAME="P_IMG" TYPE="Char"/> </LIN> </TAB> <GRP ID="GRP2"> <FLD NAME="P_YNBLIG" TYPE="Integer">4</FLD> </GRP> </RESULT>
Partager