Re: DOM appendChild question
| From: | Dan Phiffer | Date: | Thu, 26 Feb 2004 19:07:51 +0000 |
| Subject: | Re: DOM appendChild question | ||
| References: | 1 2 | Groups: | php.xml.dev |
| Request: | Send a blank email to php-xml-dev+get-327@lists.php.net to get a copy of this message | ||
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-importNodeExcellent, thanks for the link. I suppose I should have read up a bit more on the DOM before posting... -Dan