Re: [PHP] Problem with DOMElement/Node

2008-04-09 Thread Andrew Ballard
On Wed, Apr 9, 2008 at 10:17 AM, Christoph Boget <[EMAIL PROTECTED]> wrote: > > DOM Nodes are specific to the document in which they were created, so > > you can't just append a node from one document into another document. > > The importNode function does what you want. > > http://us2.php.n

Re: [PHP] Problem with DOMElement/Node

2008-04-09 Thread Christoph Boget
> DOM Nodes are specific to the document in which they were created, so > you can't just append a node from one document into another document. > The importNode function does what you want. > http://us2.php.net/manual/en/function.dom-domdocument-importnode.php Interesting. Why is that, out of

Re: [PHP] Problem with DOMElement/Node

2008-04-09 Thread Andrew Ballard
On Wed, Apr 9, 2008 at 9:35 AM, Christoph Boget <[EMAIL PROTECTED]> wrote: > Could someone explain to me what I'm doing wrong? > > I'm trying to get an element from one DOMDocument and append it to a > different DOMDocument. The (simplified) output of saveXML() from the > first DOMDocument is a