Loading TOC...

NamedNodeMap.getNamedItem

NamedNodeMap.getNamedItem(
   $name as String
) as XMLNode

Summary

Return the named node, if it exists in the map.

Parameters
$name Name of the node to return.

Usage Notes

Since lookup is by the string value of the name, it is best to avoid using this method for namespaced attributes. Use getNamedItemNS instead.

Example

cts.doc("example.xml").root.attributes.getNamedItem("class");

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.