Subject:Merging elements in an xml file Author:edel rooster Date:04 May 2005 06:48 AM
Hi,
I'm running into difficulty figuring out how to merge stuff in an xml file.
I have an xml file that looks something like
<doc_list>
<doc>
<doc_id>001</doc_id>
<term_list>
<term>A</term>
<term_list>
</doc>
<doc>
<doc_id>001</doc_id>
<term_list>
<term>B</term>
<term_list>
</doc>
</doc_list>
I want to merge the docs that have the same doc_id to get this: