Michael Gratton wrote: > After parsing an XML document and performing a cloneNode(true) on the > resulting org.w3c.dom.Document object, I get a clone of the DOM tree, as > I'd expect. However, if I then do a getChildNodes() to any node in the > tree, it seems that the Node's children are completely lost, although > the NodeList seems to work fine. > > For example, if I call getChildNodes() on the Document itself, it > suddenly has no document element.
I've tried to duplicate your problem but to no avail. The attached sample code works perfectly fine using both Xerces-J 1.0.3 and what is currently in CVS. Do you have a test case that fails? -- Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]
CloneDocument.java
Description: application/unknown-content-type-java_auto_file