Link Search Menu Expand Document

XmlDocument.CreateElementNS Method

Explanation Specify the a namespace URI, then the Element node is created.
Not supported in Mobile, AI
Call format var elm = xmldoc.CreateElementNS( namespaceURI, qualifiedName )
Return value XmlElement object
Arguments String namespaceURI Namespace URI of the Element node to be created
String qualifiedName Tag name of the Element node to be created
Exception DOM-5 INVALID_CHARACTER_ERR
DOM-14 NAMESPACE_ERR
Example of use
    var domimpl = new XmlDOMImplementation;
    var res = session.Get("/test/sample.xml");
    var xmldoc = domimpl.Load(res);
    var elm = xmldoc.CreateElementNS("http://www.w3.org/2000/svg", "svg:rect");
    
Related item XmlElement class
CreateElement method