Link Search Menu Expand Document

XmlElement.GetAttributeNS Method

Explanation Get the value of the Attr node for the specified namespace URI and attribute name.
Not supported in Mobile, AI
Call format var s = elm.GetAttributeNS( namespaceURI, name )
Return value Attr node value string.If the Attr node is not found, an empty string is returned.
Arguments String namespaceURI Namespace URI of the Attr node for which you want to get the value
String name Attribute name of the Attr node for which you want to get the value
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 s = elm.GetAttributeNS("http://www.w3.org/2000/svg ", "width");
    print(s, "\n");
    
Related item XmlAttr class
SetAttributeNS, RemoveAttributeNS, HasAttributeNS, GetAttribute, GetAttributeNode, GetAttributeNodeNS method