View Single Post
 
Old December 13th, 2006, 02:06 PM
connect2sandep connect2sandep is offline
Authorized User
 
Join Date: Jun 2005
Location: Kathmandu, , Nepal.
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to connect2sandep
Default reading a XML file

well, i read a lot about xml but never used it, and i need help regarding a problem. Here is some XML in string form:
<order>
<transactiondetails>
<oid>1a6493b4-7cfe-4c33-bdc1-238bb4af7fe0</oid>
</transactiondetails>
<payment>
<chargetotal>40.00</chargetotal>
</payment>
<billing>
<name>Sandeep Pradhananga</name>
<company>NA</company>
<address2>KTM, </address2>
<state>MD</state>
<zip>56536</zip>
<address1>KTM, </address1>
<city>KTM</city>
</billing>
<orderoptions>
<ordertype>SALE</ordertype>
<result>LIVE</result>
</orderoptions>
<creditcard>
<cvmvalue>123</cvmvalue>
<cvmindicator>provided</cvmindicator>
<cardnumber>4111-1111-1111-1111</cardnumber>
<cardexpyear>08</cardexpyear>
<cardexpmonth>01</cardexpmonth>
</creditcard>
<merchantinfo>
<configfile>1001158260</configfile>
</merchantinfo>
</order>

assuming the xml is in a string object how to parse the value corresponding to 'chargetotal'using C#.
Please Help!