Link Search Menu Expand Document

XmlNamedNodeMap.RemoveNamedItemNS Method

Explanation Delete the node by specifying the namespace URI and name.
Call format var node = map.RemoveNamedItemNS( namespaceURI, name )
Return value Deleted XmlNode object
Returns null if no node is found.
Arguments String namespaceURI Node namespace URI
String name Node name
Exception None
Example of use
    var domimpl = new XmlDOMImplementation;
    var res = session.Get("/test/sample.xml");
    var xmldoc = domimpl.Load(res);
    var map = xmldoc.DocumentElement.Attributes;
    map.RemoveNamedItemNS("http://www.w3.org/2000/svg", "width");
    
Related item XmlNode class
GetNamedItemNS, SetNamedItemNS, RemoveNamedItem method