merging two XMLs in java
Bernhard Gruber <[email protected]> Wed, 10 Jul 2002 19:36:02 +0200
| Newsgroups | gmane.comp.windows.devel.java.general |
|---|---|
| Message-ID | <[email protected]> |
--=====================_1332421901==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed hi all my task is, to merge two (or more) different XML-Documents to one (which I want to return as a String (!!!) i use oracle.xml.parser.v2.*; org.w3c.dom.*; walking through the single XMLs works perfectly and getting the Nodes (and Nodelists) I want to put together in one Doc works also --> BUT when i try to append one of the detected Nodes (somewhere) in the XMLDocument, which should put everything together I get : oracle.xml.parser.v2.XMLDOMException: Node doesn't belong to the current document. can anybody help me ?? By the way : I doent really know the correct way to get a String from an XMLDocument tnx bernie You can read messages from the JAVA archive, unsubscribe from JAVA, or subscribe to other DevelopMentor lists at http://discuss.develop.com. --=====================_1332421901==_.ALT Content-Type: text/html; charset="us-ascii" <html> hi all<br><br> my task is, to merge two (or more) different XML-Documents to one (which I want to return as a String (!!!)<br><br> i use <br><br> oracle.xml.parser.v2.*;<br> org.w3c.dom.*;<br><br> walking through the single XMLs works perfectly and getting the Nodes (and Nodelists) I want to put together in one Doc works also --><br> BUT when i try to append one of the detected Nodes (somewhere) in the XMLDocument, which should put everything together I get :<br><br> <font face="MS Sans Serif, Geneva" size=1>oracle.xml.parser.v2.XMLDOMException: Node doesn't belong to the current document.<br><br> </font>can anybody help me ??<br> By the way : I doent really know the correct way to get a String from an XMLDocument<br><br> tnx<br><br> bernie<br> <br> </html> You can read messages from the JAVA archive, unsubscribe from JAVA, or subscribe to other DevelopMentor lists at http://discuss.develop.com. --=====================_1332421901==_.ALT--