Loading TOC...

XMLDocument.getElementsByTagName

XMLDocument.getElementsByTagName(
   $name as String
) as NodeList

Summary

Return all the elements in the document with the given name.

Parameters
$name Name of the elements to return.

Usage Notes

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

See also the Node.xpath method.

Example

cts.doc("example.xml").getElementsByTagName("para");

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy