Link Search Menu Expand Document

XmlDocument.GetElementsByTagNameNS Method

Explanation Search for Element nodes by namespace URI and tag name to get a list of matching Element nodes.
Not supported in Mobile, AI
Call format var list = xmldoc.GetElementsByTagNameNS( namespaceURI, qualifiedName )
Return value XmlNodeList object containing Element nodes that match the condition
If not found, an empty XmlNodeList object is returned.
Arguments String namespaceURI Namespace URI to search
String qualifiedName Tag name to search
Exception None
Example of use
    var domimpl = new XmlDOMImplementation;
    var res = session.Get("/test/sample.xml");
    var xmldoc = domimpl.Load(res);
    var list = xmldoc.GetElementsByTagNameNS("http://www.w3.org/2000/svg", "rect");
    
Related item XmlNodeList, XmlElement classes
GetElementsByTagName, GetElementById methods