Package simplexmlapi :: Module node :: Class DotNodeList
[hide private]
[frames] | no frames]

Class DotNodeList

source code

             object --+        
                      |        
                   list --+    
                          |    
xml.dom.minicompat.NodeList --+
                              |
                             DotNodeList

A NodeList that asks its first child for attributes.

One can also access this like a dictionary to get an Attr on the first child.

Nested Classes [hide private]
  __metaclass__
Metaclass that makes sure everything in the sequence passed to the constructor is a DotNode.
Instance Methods [hide private]
 
__getitem__(self, index)
If index is an integer, return the indexth item in the list.
source code
 
__getattribute__(self, attr)
All attribute access should be passed off to the first item in the sequence.
source code

Inherited from xml.dom.minicompat.NodeList: __getstate__, __setstate__, item

Inherited from xml.dom.minicompat.NodeList (private): _get_length, _set_length

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getslice__, __gt__, __hash__, __iadd__, __imul__, __init__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from xml.dom.minicompat.NodeList: length

Inherited from object: __class__

Method Details [hide private]

__getitem__(self, index)
(Indexing operator)

source code 

If index is an integer, return the indexth item in the list. Otherwise, attempt to retrieve the attribute named index on the first child.

Overrides: list.__getitem__

__getattribute__(self, attr)

source code 

All attribute access should be passed off to the first item in the sequence.

Overrides: object.__getattribute__