Attr Object
The textContent property sets or returns the textual content of an attribute.
The following code fragment loads "books.xml" into xmlDoc using loadXMLDoc() and returns the textual content of the category attributes:
Output:
textContent - Set the textual content of an attribute
Attr Object
Your message has been sent to W3Schools.