org.w3c.dom.Node.hasAttributes
method
public hasAttributes() as Boolean
Description

Indicates whether this node has attributes.

Returns

True when at least one attribute exists.

Example
print(node.hasAttributes())