Reading an XML file having different elements using XML DOM

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sony.m.2007@googlemail.com

    Reading an XML file having different elements using XML DOM

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

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

    <detail>
    <description>na me</description>
    <t5>21</t5>
    <t6>221</t6>
    <t5>2221</t5>
    </detail>
    <detail>
    <description>na me</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
  • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

    #2
    Re: Reading an XML file having different elements using XML DOM

    sony.m.2007@goo glemail.com wrote:
    I have a XML file like below
    <?xml version="1.0" encoding="utf-8" ?>
    >
    <details>
    <detail>
    <description>na me</description>
    <t1>10</t1>
    <t1>100</t1>
    <t1>1000</t1>
    </detail>
    <detail>
    <description>na me</description>
    <t2>11</t2>
    <t3>111</t3>
    <t4>11111</t4>
    </detail>
    >
    <detail>
    <description>na me</description>
    <t5>21</t5>
    <t6>221</t6>
    <t5>2221</t5>
    </detail>
    <detail>
    <description>na me</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

    Comment

    Working...