Link Search Menu Expand Document

XmlDocument.ImportNode Method

Explanation Import the node from another DOM tree.
Not supported in Mobile, AI
Call format var cnode = xmldoc.ImportNode( node, deep )
Return value Imported XmlNode object
This node is not yet connected to the document tree and has no parent.
Arguments XmlNode node Node to import
boolean deep $TRUE for recursive imports , $FALSE otherwise
Exception DOM-9 NOT_SUPPORTED_ERR
Example of use
    var orgnode = xmldocA.DocumentElement.FirstChild;
    var copynode = xmldocB.ImportNode(orgnode, $TRUE);
    xmldocB.DocumentElement.FirstChild.AppendChild(copynode);
    
Related item XmlDocument, XmlNode classes