Link Search Menu Expand Document

XmlElement.HasAttributeNS Method

Explanation Checks for the existence of an Attr node with the specified namespace URI and attribute name .
Not supported in Mobile, AI
Call format var ret = elm.HasAttributeNS( namespaceURI, name )
Return value $TRUE if the Attr node exists , $FALSE if it does not
Arguments String namespaceURI Namespace URI
String name 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 ret = elm.HasAttributeNS("http://www.w3.org/2000/svg", "style");
    
Related item HasAttribute, GetAttributeNS, SetAttributeNS, RemoveAttributeNS, GetAttributeNodeNS method