Link Search Menu Expand Document

XmlElement.RemoveAttribute Method

Explanation Delete the Attr node by specifying the attribute name .
Not supported in Mobile, AI
Call format elm.RemoveAttribute( name )
Return value None
Arguments 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.RemoveAttribute("style");
    
Related item XmlAttr class
GetAttribute, SetAttribute, HasAttribute, RemoveAttributeNode, RemoveAttributeNS method