Can anyone please tell me how to merge 2 xml documents? Some of the documents may contain duplicate records...so I need to merge into a new file with duplicate entries only recorded once.
An example I've been working with is for the following code
file 1
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
</book>
</book>
<book id="bk3">
<author>Jordan, Michael</author>
<title> computers</title>
<genre>Romance</genre>
<price>5.50</price>
</book>
</catalog>
File 2.
<catalog>
<book id="bk106">
<author>Randall, Cynthia</author>
<title>Lover Birds</title>
<genre>Romance</genre>
<price>4.95</price>
</book>
<book id="bk3">
<author>Jordan, Michael</author>
<title> computers</title>
<genre>Romance</genre>
<price>5.50</price>
</book>
</catalog>
Please Help!
An example I've been working with is for the following code
file 1
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
</book>
</book>
<book id="bk3">
<author>Jordan, Michael</author>
<title> computers</title>
<genre>Romance</genre>
<price>5.50</price>
</book>
</catalog>
File 2.
<catalog>
<book id="bk106">
<author>Randall, Cynthia</author>
<title>Lover Birds</title>
<genre>Romance</genre>
<price>4.95</price>
</book>
<book id="bk3">
<author>Jordan, Michael</author>
<title> computers</title>
<genre>Romance</genre>
<price>5.50</price>
</book>
</catalog>
Please Help!