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 XMLDOMAttribute Object

In both the W3C DOM and the Microsoft DOM, attribute objects are node objects (that is, they are based on the node object), but they are not actually child nodes of an element and are not considered part of the document tree. Instead, attributes are considered properties of their associated elements (this means that properties such as parentNode, previousSibling, and nextSibling are meaningless for attributes). We'll see how to work with attributes in this chapter.

Here are the base properties of the XMLDOMAttribute 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 child nodes. Read-only. ...

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