Link Search Menu Expand Document

XmlDocument.CreateElement Method

Explanation Create an Element node.
Not supported in Mobile, AI
Call format var elm = xmldoc.CreateElement( tagName )
Return value XmlElement object
Arguments String tagName Tag name of the Element node to be created
Exception DOM-5 INVALID_CHARACTER_ERR
Example of use
    var domimpl = new XmlDOMImplementation;
    var res = session.Get("/test/sample.xml");
    var xmldoc = domimpl.Load(res);
    var elm = xmldoc.CreateElement("TAG1");
    
Related item XmlElement class
CreateElementNS method