Reading an XML file having different elements using XML DOM

Reading an XML file having different elements using XML DOM

Post by sony.m.200 » Tue, 25 Mar 2008 19:00:01


Hi,
I have a XML file like below
<?xml version="1.0" encoding="utf-8" ?>

<details>
<detail>
<description>name</description>
<t1>10</t1>
<t1>100</t1>
<t1>1000</t1>
</detail>
<detail>
<description>name</description>
<t2>11</t2>
<t3>111</t3>
<t4>11111</t4>
</detail>

<detail>
<description>name</description>
<t5>21</t5>
<t6>221</t6>
<t5>2221</t5>
</detail>
<detail>
<description>name</description>
<t1>21</t1>
<t2>221</t2>
<t1>2221</t1>
</detail>
</details>


How to read,print and modify above XML file having different detail
elements using XML DOM.
Kindly help me out


Thanks,
Sony
 
 
 

Reading an XML file having different elements using XML DOM

Post by Alberto Po » Tue, 25 Mar 2008 19:49:44


You can use the System.Xml.XmlDocument class to manipulate XML documents
using the DOM. There is complete documentation including examples in MSDN
here:

http://www.yqcomputer.com/

 
 
 

Reading an XML file having different elements using XML DOM

Post by Arne Vaj » Wed, 26 Mar 2008 09:59:20


You already have one thread going about this topic.

Arne