I need to read all these data from xml using C#. I already tried but cannot read data like below:
paye :01,category : 1111,ammountALL : 98.000 ,invoice : inv01,order : ord1,date : 2008-07-10T07:08:34, amount: 99.000
paye :01,category : 1111,ammountALL : 98.000 ,invoice : inv02,order : ord2,date : 2008-07-10T07:08:34, amount: 120.000
Following is the XML:
<?xml version="1.0" encoding="utf-8"?>
<pn:parent xmlns:pn="info">
<child>
<column1>
<id>1</id>
<name>jack</name>
<username>jack01</username>
<date>2001-03-11T06:08:34</date>
</column1>
<column2>
<day>2002-01-01</day>
<doneby>teresa</doneby>
<lbs>20.00</lbs>
</column2>
<container>
<paye>01</paye>
<category>1111</category>
<ammountALL>98.000</ammountALL>
<pn:sales>
<saledetails>
<invoice>inv01</invoice>
<order>ord1</order>
<date>2008-07-10T07:08:34</date>
<amount>99.000</amount>
</saledetails>
<saledetails>
<invoice>inv02</invoice>
<order>ord2</order>
<date>2008-09-19T09:09:34</date>
<amount>120.000</amount>
</saledetails>
</pn:sales>
</container>
<container>
<paye>02</paye>
<category>2222</category>
<ammountALL>3000.000</ammountALL>
<pn:sales>
<saledetails>
<invoice>inv03</invoice>
<order>ord3</order>
<date>2008-07-10T07:08:34</date>
<amount>33.000</amount>
</saledetails>
<saledetails>
<invoice>inv04</invoice>
<order>ord4</order>
<date>2008-07-10T07:08:34</date>
<amount>44.000</amount>
</saledetails>
<saledetails>
<invoice>inv05</invoice>
<order>ord5</order>
<date>2008-09-19T09:09:34</date>
<amount>555.000</amount>
</saledetails>
<saledetails>
<invoice>inv06</invoice>
<order>ord6</order>
<date>2008-09-19T09:09:34</date>
<amount>66.000</amount>
</saledetails>
</pn:sales>
</container>
</child>
</pn:parent>
Aucun commentaire:
Enregistrer un commentaire