Haven't tried it myself... but from the docs this is what you'd do (if using
DOM):
read a.xml into DocumentA
read b.xml into DocumentB
create DocumentC using a DOMImplementation (you can ask one of the
previous
objects for it's DOMImplementation)
TopNodeA = Import root node from DocumentA into C using
DocumentC.importNode(DocumentA.getDocumentElement(),true);
TopNodeB = Import root node from DocumentB into C using
DocumentC.importNode(DocumentB.getDocumentElement(),true);
Set the document node for DocumentC to be TopNodeA
Append TopNodeB to TopNodeA
That should do it... like I said, I haven't tried it myself, but it should
work.
-Chris
-----Original Message-----
From: Kakoli [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2000 12:57 AM
To: [email protected]
Subject: Urgent query!
Hello everybody,
I wanted some code which will operate on two xml files to form a
resultant xml file in the fol. way,
a.xml + b.xml = c.xml, where
a.xml : <a>...</a>
b.xml : <b>...</b>
c.xml : <a>...</a>
<b>...</b>.
Regards,
Kakoli
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]