ThomasOatman
Programmer
I am using Xerces API.
I want to parse multiple xml files and put them together into one DOM tree.
So I've done a parse on a file. The Parser object has its own DOMDocument object.
I create a DOMDocument and try to do an appendChild of one of the nodes just parsed but Xerces throws an exception that the document is not the same.
So, is there a way to change the parent document?
or a way to move a node from one document to another?
I want to parse multiple xml files and put them together into one DOM tree.
So I've done a parse on a file. The Parser object has its own DOMDocument object.
I create a DOMDocument and try to do an appendChild of one of the nodes just parsed but Xerces throws an exception that the document is not the same.
So, is there a way to change the parent document?
or a way to move a node from one document to another?