O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The XMLDOMElement Object

The XMLDOMElement object represents elements and is probably the most common node object you'll deal with. Because attributes are not considered child nodes of an element object, you use special methods to get the attributes of an element. For example, you can use the getAttribute method, which returns an XMLDOMNamedNodeMap object that contains all the element's attributes.

Here are the base properties of the XMLDOMElement object:

  • attributes— The list of attributes for this node. Read-only.

  • baseName*— The base name for the name qualified with the namespace. Read-only.

  • childNodes— A node list containing the children. Read-only.

  • dataType*— The data type for this node. Read/write.

  • definition*— The definition of the node in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required