MarkLogic Server 11.0 Product Documentation
Element.hasAttributesElement.hasAttributes() as String
Summary
This is inherited from the XMLNode object.
Whether this node has attributes.
Usage Notes
This property is false for non-element nodes.
Example
cts.doc("example.xml").firstChild.hasAttributes
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.