Link Search Menu Expand Document

XmlElement.GetAttributeNodeNS Method

Explanation Get the Attr node by specifying the namespace URI and attribute name.
Not supported in Mobile, AI
Call format var attr = elm.GetAttributeNodeNS( namespaceURI, name )
Return value XmlAttr object
Returns null if not found.
Arguments String namespaceURI Namespace URI of Attr node
String name Attr node attribute name
Exception None
Example of use
    var domimpl = new XmlDOMImplementation;
    var res = session.Get("/test/sample.xml");
    var xmldoc = domimpl.Load(res);
    var elm = xmldoc.DocumentElement;
    var attr = elm.GetAttributeNodeNS("http://www.w3.org/2000/svg", "width");
    print(attr.Value, "\n");   
    
Related item XmlAttr class
SetAttributeNodeNS, HasAttributeNS, GetAttribute, GetAttributeNode, GetAttributeNS method