XML DOM hasAttributes() Method

The following code fragment loads "books.xml" into xmlDoc and checks if the first <book> element has any attributes

Definition and Usage

The hasAttributes() method returns TRUE if the current element node has any attributes, and FALSE otherwise.

Syntax

hasAttributes()

❮ Element Object