Link Search Menu Expand Document

XmlElement.RemoveAttributeNS Method

Explanation Delete the Attr node with the namespace URI and attribute name.
Not supported in Mobile, AI
Call format elm.RemoveAttributeNS( namespaceURI, name )
Return value None
Arguments String namespaceURI Attr node namespace URI
String name Attr node attribute name
Exception DOM-7 NO_MODIFICATION_ALLOWED_ERR
Example of use
    var domimpl = new XmlDOMImplementation;
    var res = session.Get("/test/sample.xml");
    var xmldoc = domimpl.Load(res);
    var elm = xmldoc.DocumentElement;
    elm.RemoveAttributeNS("http://www.w3.org/2000/svg", "style");
    
Related item XmlAttr class
GetAttributeNS, SetAttributeNS, HasAttributeNS, RemoveAttribute, RemoveAttributeNode method