J
Jim Bancroft
Hi everyone,
Could someone reccomend a way to remove duplicate/outmoded nodes in an XML
document?
I didn't describe that well, so let me give an example.
For instance, if I have an XML doc like so:
<inventory>
<part>
<name="CPU"/>
<version="4"/>
</part>
<part>
<name="Hard Disk"/>
<version="3"/>
</part>
<part>
<name="CPU"/>
<version="5"/>
</part>
<part>
<name="Keyboard"/>
<version="3"/>
</part>
<part>
<name="Keyboard"/>
<version="3"/>
</part>
</inventory>
I'd like to get a final document with a single CPU element whose
version="5", a Hard Disk element of version="3", and *one* Keyboard element
of version "3". If you could give me a lead, I'd be grateful. Thanks.
-Jim
Could someone reccomend a way to remove duplicate/outmoded nodes in an XML
document?
I didn't describe that well, so let me give an example.
For instance, if I have an XML doc like so:
<inventory>
<part>
<name="CPU"/>
<version="4"/>
</part>
<part>
<name="Hard Disk"/>
<version="3"/>
</part>
<part>
<name="CPU"/>
<version="5"/>
</part>
<part>
<name="Keyboard"/>
<version="3"/>
</part>
<part>
<name="Keyboard"/>
<version="3"/>
</part>
</inventory>
I'd like to get a final document with a single CPU element whose
version="5", a Hard Disk element of version="3", and *one* Keyboard element
of version "3". If you could give me a lead, I'd be grateful. Thanks.
-Jim