Name
importNode: importedNode, deep(2)
Synopsis
This method’s name is somewhat deceptive. It creates
a copy of a Node
object from
another document that can be inserted within the current
document’s node hierarchy. Specifics of this copy operation vary,
depending on the type of copied node, as described in this
table:
Node type | Result | Effect of deep flag |
| Adopts the source attribute and all its
children. The | None. |
| Creates an empty | Fully copies the children of the source
|
| Cannot be imported. | N/A. |
| Cannot be imported. | N/A. |
| Adopts the attribute nodes with the | Recursively copies all the source element’s children. |
| Adopts the | Recursively copies all of the |
| Adopts only the | None. |
| Imports the | None. |
| Adopts the | None. |
| Adopts the | None. |
The new (copied) node object is returned based on the arguments.
Arguments
- importedNode: ...
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.