Attr Object
The specified property returns true if the attribute value is set in the document, and false if it's a default value in a DTD/Schema.
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and displays the name and value of the category attribute:
Output:
Attr Object
Your message has been sent to W3Schools.