posted 21 years ago
Hi, can anyone tell me how to use 'org.w3c.dom.DocumentFragment' in Xerces package?
And second question is when i have a document, and some nodes in this document to update, I have another xml fragment liek "<g/>", i want to insert this <g/> into some nodes of original document. The problem is when i insert this <g/> into nodes in loop, after that only last updated operation is remained. I don't know why this happened.
e.g.
I have <a><b><a/></b></a> and i want insert <g/> into all <a> but after loop, this becomes <a><b><a><g/></a></b></a>. But it should be like this <a><g/><b><a><g/></a></b></a>.
Please help me.