grafting DOM doc [as a fragment] into another DOM doc [node]
| From: | Terence | Date: | Wed, 21 May 2003 06:50:03 +0000 |
| Subject: | grafting DOM doc [as a fragment] into another DOM doc [node] | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-5493@lists.php.net to get a copy of this message | ||
Does anyone know if someone has written some code which will graft another DOM document [as a fragment] into another DOM node?
ie.
$nodeFoo->importChildFrag($domDoc);
OR
$nodeFoo->importChildFrag($nodeBar);
where $nodeBar is from a different document object to $nodeFoo.
This would be useful when working with DOM XML applications that want to import XML flat files into the main application XML [source] tree.
I just thought I'd check before re-inventing the wheel. If there are no takers, I'll go ahead and write "importChildFrag()" myself.