RE: [xmljs-users] deep copy nodes between xml documents with JS
Brought to you by:
djoham,
witchhunter
From: David J. <dj...@ya...> - 2004-12-14 16:12:48
|
> all I gotta do is turn "xmlFragment" (not a real DocumentFragment yet) > into something I can insert into the master > > there isn't really a copyNode(deep) or insertFragment(node) is there... Creating a DOMDocumentFragment and inserting it into the document using the standard append*/insert* methods should do the trick for you. http://xmljs.sourceforge.net/website/documentation-w3cdom-DOMDocument.html#DOMDocumentCreateDocumentFragment David |