Reading an XML file having different elements using XML DOM

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top