NamedNodeMap.getNamedItem( name as String ) as XMLNode
Return the named node, if it exists in the map.
Parameters | |
---|---|
name | Name of the node to return. |
Since lookup is by the string value of the name, it is best to avoid using this method for namespaced attributes. Use getNamedItemNS instead.
cts.doc("example.xml").root.attributes.getNamedItem("class");