Re: [PHP-XML-DEV] DOM appendChild question
[email protected] (Dan Phiffer) Thu, 26 Feb 2004 11:07:51 -0800
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
Christian Stocker wrote: > No. The Exception is there for a reason ;) Hehe, yeah I had a suspicion. > Use $doc->importNode($hello->firstChild); before you do the appendChild. > > See also > http://www.w3.org/TR/2004/PR-DOM-Level-3-Core-20040205/core.html#Core-Document-importNode Excellent, thanks for the link. I suppose I should have read up a bit more on the DOM before posting... -Dan