W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: importNode

From: <keshlam@us.ibm.com>
Date: Fri, 3 Mar 2000 08:57:41 -0500
To: Johannes Ewalt Koch <koch@physik.TU-Berlin.DE>
cc: www-dom@w3.org
Message-ID: <85256897.004CAF2A.00@D51MTA03.pok.ibm.com>
importNode copies the other node "by value" -- it extracts all the
information and uses it to produce a new node (or nodes) belonging to the
target document. The data being copied must already be available via the
DOM Node API; you're importing from another Document, not from a URI or

If all you have is a URI, your application will have to use that URI to
retrieve the data, pass it through a parser and find the node it's
interested in (or otherwise find that data and express it as a DOM Node).
After you have done so, importNode can be used to copy it.
Joe Kesselman  / IBM Research
Received on Friday, 3 March 2000 08:58:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:06 UTC