Loading TOC...

Element.hasAttributeNS

Element.hasAttributeNS(
   $uri as String?,
   $localname as String
) as Boolean

Summary

Whether this element has an attribute the given localname and namespace URI.

Parameters
$uri Namespace URI of the attribute.
$localname Local name of the attribute.

Example

cts.doc("example.xml").getElementById("ex1").
  hasAttributeNS("http://www.w3.org/XML/1998/namespace","lang");

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.