Python Library Reference
Previous: Up: 13.6.2 Objects in the Next:


13.6.2.8 NamedNodeMap Objects

NamedNodeMap does not inherit from Node.

length
The length of the attribute list.

item( index)
Return an attribute with a particular index. The order you get the attributes in is arbitrary but will be consistent for the life of a DOM. Each item is an attribute node. Get its value with the value attribute.

There are also experimental methods that give this class more mapping behavior. You can use them or you can use the standardized getAttribute*() family of methods on the Element objects.


Python Library Reference
Previous: Up: 13.6.2 Objects in the Next:

Release 2.4.4, documentation updated on 18 October 2006.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /