xml.DomDocument.importNode
Imports a xml.DomNode from a
xml.DomDocument object into its new context (attached to a
xml.DomDocument object).
Syntax
importNode(
n xml.DomNode
deep INTEGER )
RETURNS xml.DomNode
- n defines the node to import.
- deep defines a boolean identifying whether to import the node only or the node and all its child nodes.
Returns an xml.DomNode object.
Usage
Imports an xml.DomNode object from an xml.DomDocument object
into its new context (attached to this xml.DomDocument object), where
n is the node to import. When deep is FALSE only the node is
imported; when TRUE the node and all its child nodes are imported.
Returns the xml.DomNode object that has been imported to this
xml.DomDocument.
Document and Document Type nodes cannot be imported.
In case of error, the method throws an exception and sets the
status variable. Depending on the error, a human-readable description of the
problem is available in the sqlca.sqlerrm register. See Error handling in GWS calls (status).