public hasAttributes() as Boolean
Indicates whether this node has attributes.
True when at least one attribute exists.
print(node.hasAttributes())