Package bridge :: Class Document
[hide private]
[frames] | no frames]

Class Document

source code

object --+    
         |    
   Element --+
             |
            Document

Nested Classes [hide private]

Inherited from Element: parser


Instance Methods [hide private]
  __init__(self)
Maps an XML element to a Python object.
  get_root(self)
  __repr__(self)

Inherited from Element: __copy__, __delattr__, __iter__, __str__, __unicode__, clone, filtrate, forget, get_attribute, get_attribute_ns, get_child, get_children, has_child, has_element, insert_after, insert_before, update_prefix, validate, xml

Inherited from object: __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__


Class Methods [hide private]

Inherited from Element: load


Class Variables [hide private]

Inherited from Element: as_attribute, as_list, encoding


Properties [hide private]
  xml_root
Retrieve the top level element

Inherited from object: __class__


Method Details [hide private]

__init__(self)
(Constructor)

source code 

Maps an XML element to a Python object.

Keyword arguments: name -- Name of the XML element content -- Content of the element attributes -- dictionary of the form {local_name: value} prefix -- XML prefix of the element namespace -- XML namespace attached to that element parent -- Parent element of this element.

If 'parent' is not None, 'self' will be added to the parent.xml_children

If 'Element.as_list' is set and if (name, namespace) belongs to it then we will add a list to parent with the name of the element

If 'Element.as_attribute' is set and if (name, namespace) belongs to it then we will add an attribute to parent with the name of the element
Overrides: Element.__init__
(inherited documentation)

get_root(self)

source code 
None
Overrides: Element.get_root

__repr__(self)
(Representation operator)

source code 
None
Overrides: Element.__repr__

Property Details [hide private]

xml_root

Retrieve the top level element
Get Method:
bridge.Document.get_root(self)
Set Method:
None                                                                  
Delete Method:
None