I happen to agree with you - that this would be useful feature. Of course if the new owner is of a different DOM implementation, there could be problems. But the changeOwnerDocument could even check for this case. I think this is worthy to consider as a feature request, and I'll put it in Bugzilla for you.
Regards, Ralf Pfeiffer Shane Richards wrote: > G'day, > > I am in the process of building a transformation engine using xerces > & xalan. A feature (I hope I haven't missed it in the doco) that would be > really nice would be the ability to change the owner document (both shallow > & deep) for a node subtree. I am using the importNode() method at the > moment, but this is expensive because its doing a clone under the > skin. As well as the ability to be able to "copy", a "cut" would be very > useful. > > When I began playing with XML under java, I started with the Sun XML > libraries and they offered a changeOwnerDocument() method which was quite > nice. Is there any > intention to offer a similar feature in the near future for xerces? > > Shane Richards. > Solutions Architect. > CGU Insurance Australia. -- <person name="Ralf I. Pfeiffer" loc="IBM JTC, Cupertino, CA" email1="[EMAIL PROTECTED]" email2="[EMAIL PROTECTED]" />
