Reading an XML file having different elements using XML DOM

  • Thread starter Thread starter sony.m.2007
  • Start date Start date
S

sony.m.2007

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
 
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.

You already have one thread going about this topic.

Arne
 
Back
Top