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.net/manual/en/function.dom-domdocument-importnode.php
>
>  Interesting.  Why is that, out of curiosity?
>
>  Thanks for the pointer!  That's exactly what I needed. :)
>
>  thnx,
>  Chris
>

Well, it's part of the DOM specification. I'm not totally sure why
(and don't have the inclination to read all about it), but DOM nodes
are specific to the document and contain pointers and other
information related to that document.

If you really want to know moe details, you can check out the W3C site (or STW).

http://www.w3.org/DOM/faq.html#moveNode

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to