Module Assign NameStore Str Import alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad vararg kwarg body If BoolOpOr CompareNotIn Str AttributeLoad AttributeLoad NameLoad attr attr CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr For TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad orelse If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad ListLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str CompareNotEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad NameLoad BoolOpAnd Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareNotIn Str AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad If CompareGt NameLoad Num body Return Call AttributeLoad NameLoad attr Num If CompareIs SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad Num NameLoad body Assign NameStore Dict Assign NameStore Dict If BoolOpOr CompareNotIn Str AttributeLoad NameLoad attr CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Call NameLoad SubscriptLoad NameLoad Index Num NameLoad TupleLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad orelse If Call NameLoad NameLoad NameLoad body If CompareLtE NameLoad Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index BinOpSub NameLoad Num NameLoad orelse Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Call NameLoad NameLoad NameLoad TupleLoad NameLoad NameLoad NameLoad Assign NameStore TupleLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpSub NameLoad Num NameLoad Return NameLoad orelse Return SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad Num decorator_list Assign NameStore Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str Assign NameStore ListLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Num If NameLoad body If Call NameLoad NameLoad NameLoad NameLoad body If SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str Assign NameStore ListLoad Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Num If NameLoad body If Call NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body If BoolOpAnd NameLoad CompareIn AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If SubscriptLoad NameLoad Index Num body If CompareIs Call NameLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num ListLoad Expr Call AttributeLoad Call NameLoad NameLoad SubscriptLoad NameLoad Index Num attr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad orelse Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num Call NameLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore BoolOpOr NameLoad NameLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad SubscriptLoad NameLoad Index Num If BoolOpAnd NameLoad SubscriptLoad NameLoad Index Num body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad If AttributeLoad NameLoad attr body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num NameLoad body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Str FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Str FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Call NameLoad NameLoad NameLoad Return SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore Call NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Return SubscriptLoad NameLoad Slice Num Call AttributeLoad NameLoad attr Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Num BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Num NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad orelse If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Num BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Num orelse Assign SubscriptStore AttributeLoad NameLoad attr Index Num Call AttributeLoad NameLoad attr Num orelse If NameLoad body Assign AttributeStore NameLoad attr BinOpMod Str TupleLoad NameLoad Call AttributeLoad NameLoad attr Num orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad AttributeLoad NameLoad attr NameLoad body If CompareLtE NameLoad Call NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index BinOpSub NameLoad Num orelse Return SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Slice BinOpAdd Call AttributeLoad NameLoad attr Str Num orelse Assign NameStore NameLoad Assign NameStore NameLoad Return BoolOpOr BoolOpAnd CompareIs NameLoad NameLoad CompareIs NameLoad NameLoad BoolOpAnd CompareIs NameLoad NameLoad CompareEq NameLoad NameLoad BoolOpAnd CompareIs NameLoad NameLoad CompareEq NameLoad NameLoad BoolOpAnd CompareIs NameLoad NameLoad CompareEq NameLoad Str CompareIs NameLoad NameLoad BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad BoolOpAnd CompareEq NameLoad NameLoad CompareEq NameLoad Str CompareIs NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad decorator_list Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num body If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad orelse If CompareEq AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list
N/A N/A __author__ j.s@google.com (Jeff Scudder) N/A inspect N/A N/A xml.etree cElementTree ElementTree N/A N/A N/A ImportError N/A N/A N/A N/A cElementTree ElementTree N/A N/A N/A ImportError N/A N/A N/A xml.etree ElementTree N/A N/A N/A ImportError N/A elementtree ElementTree N/A STRING_ENCODING utf-8 XmlElement N/A object N/A N/A Represents an element node in an XML document.
  
  The text member is a UTF-8 encoded str or unicode.
   N/A _qname None N/A _other_elements None N/A _other_attributes None N/A _rule_set None N/A _members None N/A text None __init__ N/A N/A self text N/A None args kwargs N/A N/A N/A N/A _members N/A N/A self __class__ __dict__ N/A N/A N/A self __class__ _members None N/A N/A N/A N/A self __class__ _members N/A tuple N/A N/A N/A self __class__ _list_xml_members N/A N/A member_name member_type N/A N/A self __class__ _members N/A N/A N/A member_name kwargs N/A N/A N/A setattr self member_name N/A kwargs N/A member_name N/A N/A N/A isinstance member_type list N/A N/A N/A setattr self member_name N/A N/A N/A N/A setattr self member_name None N/A N/A self _other_elements N/A N/A N/A self _other_attributes N/A N/A N/A text None N/A N/A N/A self text text N/A _list_xml_members N/A N/A cls N/A N/A N/A Generator listing all members which are XML elements or attributes.
    
    The following members would be considered XML members:
    foo = 'abc' - indicates an XML attribute with the qname abc
    foo = SomeElement - indicates an XML child element
    foo = [AnElement] - indicates a repeating XML child element, each instance
        will be stored in a list in this member
    foo = ('att1', '{http://example.com/namespace}att2') - indicates an XML
        attribute which has different parsing rules in different versions of 
        the protocol. Version 1 of the XML parsing rules will look for an
        attribute with the qname 'att1' but verion 2 of the parsing rules will
        look for a namespaced attribute with the local name of 'att2' and an
        XML namespace of 'http://example.com/namespace'.
     N/A members N/A N/A pair N/A N/A inspect getmembers cls N/A N/A N/A N/A N/A N/A N/A pair N/A 0 startswith _ N/A N/A pair N/A 0 text N/A N/A member_type N/A pair N/A 1 N/A N/A N/A isinstance member_type tuple N/A isinstance member_type list N/A isinstance member_type N/A str unicode N/A N/A N/A inspect isclass member_type N/A issubclass member_type XmlElement N/A N/A N/A N/A members append pair N/A members N/A N/A _list_xml_members N/A classmethod _list_xml_members _get_rules N/A N/A cls version N/A N/A N/A Initializes the _rule_set for the class which is used when parsing XML.

    This method is used internally for parsing and generating XML for an
    XmlElement. It is not recommended that you call this method directly.
    
    Returns:
      A tuple containing the XML parsing rules for the appropriate version.

      The tuple looks like: 
      (qname, {sub_element_qname: (member_name, member_class, repeating), ..},
       {attribute_qname: member_name})

      To give a couple of concrete example, the atom.data.Control _get_rules
      with version of 2 will return:
      ('{http://www.w3.org/2007/app}control',
       {'{http://www.w3.org/2007/app}draft': ('draft',
                                              <class 'atom.data.Draft'>,
                                              False)}, 
       {})
      Calling _get_rules with version 1 on gdata.data.FeedLink will produce:
      ('{http://schemas.google.com/g/2005}feedLink',
       {'{http://www.w3.org/2005/Atom}feed': ('feed',
                                              <class 'gdata.data.GDFeed'>,
                                              False)},
       {'href': 'href', 'readOnly': 'read_only', 'countHint': 'count_hint',
        'rel': 'rel'})
     N/A N/A N/A _rule_set N/A cls __dict__ N/A N/A cls _rule_set None N/A N/A N/A cls _rule_set N/A None None N/A N/A version 2 N/A N/A N/A N/A cls _get_rules 2 N/A N/A N/A N/A cls _rule_set N/A N/A version 1 None N/A N/A elements N/A N/A attributes N/A N/A N/A N/A _members N/A cls __dict__ N/A N/A cls _members None N/A N/A N/A cls _members N/A tuple N/A N/A cls _list_xml_members N/A N/A member_name target N/A cls _members N/A N/A N/A isinstance target list N/A N/A N/A elements N/A N/A _get_qname N/A target N/A 0 version N/A member_name N/A target N/A 0 True N/A N/A N/A isinstance target tuple N/A N/A N/A version N/A len target N/A N/A N/A attributes N/A N/A target N/A N/A version 1 member_name N/A N/A N/A attributes N/A N/A target N/A -1 member_name N/A N/A N/A isinstance target N/A str unicode N/A N/A N/A attributes N/A target member_name N/A N/A N/A issubclass target XmlElement N/A N/A N/A elements N/A N/A _get_qname target version N/A member_name target False N/A version_rules N/A N/A _get_qname cls version elements attributes N/A N/A N/A cls _rule_set N/A N/A version 1 version_rules N/A version_rules N/A N/A N/A N/A cls _rule_set N/A N/A version 1 N/A N/A _get_rules N/A classmethod _get_rules get_elements N/A N/A self tag namespace version N/A None None 1 N/A N/A Find all sub elements which match the tag and namespace.

    To find all elements in this object, call get_elements with the tag and
    namespace both set to None (the default). This method searches through
    the object's members and the elements stored in _other_elements which
    did not match any of the XML parsing rules for this class.

    Args:
      tag: str
      namespace: str
      version: int Specifies the version of the XML rules to be used when 
               searching for matching elements.

    Returns:
      A list of the matching XmlElements.
     N/A matches N/A N/A N/A ignored1 elements ignored2 N/A N/A N/A self __class__ _get_rules version N/A elements N/A N/A N/A qname element_def N/A N/A elements iteritems N/A N/A member N/A getattr self N/A element_def N/A 0 N/A member N/A N/A N/A _qname_matches tag namespace qname N/A N/A N/A element_def N/A 2 N/A N/A N/A N/A matches extend member N/A N/A N/A N/A matches append member N/A element N/A self _other_elements N/A N/A N/A _qname_matches tag namespace N/A element _qname N/A N/A N/A N/A matches append element N/A matches N/A N/A GetElements get_elements N/A FindExtensions get_elements N/A FindChildren get_elements get_attributes N/A N/A self tag namespace version N/A None None 1 N/A N/A Find all attributes which match the tag and namespace.

    To find all attributes in this object, call get_attributes with the tag
    and namespace both set to None (the default). This method searches 
    through the object's members and the attributes stored in 
    _other_attributes which did not fit any of the XML parsing rules for this
    class.

    Args:
      tag: str
      namespace: str
      version: int Specifies the version of the XML rules to be used when 
               searching for matching attributes.

    Returns:
      A list of XmlAttribute objects for the matching attributes.
     N/A matches N/A N/A N/A ignored1 ignored2 attributes N/A N/A N/A self __class__ _get_rules version N/A attributes N/A N/A N/A qname attribute_def N/A N/A attributes iteritems N/A N/A member N/A getattr self N/A attribute_def N/A 0 N/A member N/A N/A N/A _qname_matches tag namespace qname N/A N/A N/A N/A matches append N/A XmlAttribute qname member N/A N/A qname value N/A N/A N/A self _other_attributes iteritems N/A N/A N/A _qname_matches tag namespace qname N/A N/A N/A N/A matches append N/A XmlAttribute qname value N/A matches N/A N/A GetAttributes get_attributes _harvest_tree N/A N/A self tree version N/A 1 N/A N/A Populates object members from the data in the tree Element. N/A N/A qname elements attributes N/A N/A N/A self __class__ _get_rules version N/A element tree N/A N/A N/A elements N/A N/A element tag elements N/A N/A definition N/A elements N/A N/A element tag N/A N/A definition N/A 2 N/A N/A N/A N/A getattr self N/A definition N/A 0 None N/A N/A N/A setattr self N/A definition N/A 0 N/A N/A N/A N/A N/A getattr self N/A definition N/A 0 append N/A _xml_element_from_tree element N/A definition N/A 1 version N/A N/A N/A setattr self N/A definition N/A 0 N/A _xml_element_from_tree element N/A definition N/A 1 version N/A N/A N/A N/A N/A self _other_elements append N/A _xml_element_from_tree element XmlElement version N/A N/A attrib value N/A N/A N/A tree attrib iteritems N/A N/A N/A attributes N/A attrib attributes N/A N/A N/A setattr self N/A attributes N/A attrib value N/A N/A N/A N/A self _other_attributes N/A attrib value N/A N/A tree text N/A N/A N/A self text N/A tree text N/A _to_tree N/A N/A self version encoding N/A 1 None N/A N/A new_tree N/A N/A ElementTree Element N/A _get_qname self version N/A N/A N/A self _attach_members new_tree version encoding N/A new_tree N/A _attach_members N/A N/A self tree version encoding N/A 1 None N/A N/A Convert members to XML elements/attributes and add them to the tree.
    
    Args:
      tree: An ElementTree.Element which will be modified. The members of
            this object will be added as child elements or attributes 
            according to the rules described in _expected_elements and 
            _expected_attributes. The elements and attributes stored in
            other_attributes and other_elements are also added a children
            of this tree.
      version: int Ingnored in this method but used by VersionedElement.
      encoding: str (optional)
     N/A N/A qname elements attributes N/A N/A N/A self __class__ _get_rules version N/A encoding N/A encoding STRING_ENCODING N/A elements N/A N/A N/A tag element_def N/A N/A elements iteritems N/A N/A member N/A getattr self N/A element_def N/A 0 N/A N/A member N/A element_def N/A 2 N/A N/A instance member N/A N/A N/A N/A instance _become_child tree version N/A N/A member N/A N/A N/A N/A member _become_child tree version N/A attributes N/A N/A N/A attribute_tag member_name N/A N/A attributes iteritems N/A N/A value N/A getattr self member_name N/A value N/A N/A N/A N/A tree attrib N/A attribute_tag value N/A element N/A self _other_elements N/A N/A N/A N/A element _become_child tree version N/A N/A key value N/A N/A N/A self _other_attributes iteritems N/A N/A N/A N/A isinstance value unicode N/A N/A value N/A N/A value decode encoding N/A N/A N/A tree attrib N/A key value N/A N/A self text N/A N/A N/A isinstance N/A self text unicode N/A N/A N/A tree text N/A self text N/A N/A N/A tree text N/A N/A N/A self text decode encoding N/A to_string N/A N/A self version encoding N/A 1 None N/A N/A Converts this object to XML. N/A N/A N/A ElementTree tostring N/A N/A self _to_tree version encoding N/A N/A ToString to_string __str__ N/A N/A self N/A N/A N/A N/A N/A self to_string N/A _become_child N/A N/A self tree version N/A 1 N/A N/A Adds a child element to tree with the XML data in self. N/A new_child N/A N/A ElementTree Element N/A N/A N/A tree append new_child N/A N/A new_child tag N/A _get_qname self version N/A N/A N/A self _attach_members new_child version N/A __get_extension_elements N/A N/A self N/A N/A N/A N/A self _other_elements N/A __set_extension_elements N/A N/A self elements N/A N/A N/A N/A self _other_elements elements N/A N/A extension_elements N/A property __get_extension_elements __set_extension_elements Provides backwards compatibility for v1 atom.AtomBase classes. __get_extension_attributes N/A N/A self N/A N/A N/A N/A self _other_attributes N/A __set_extension_attributes N/A N/A self attributes N/A N/A N/A N/A self _other_attributes attributes N/A N/A extension_attributes N/A property __get_extension_attributes __set_extension_attributes Provides backwards compatibility for v1 atom.AtomBase classes. _get_tag N/A N/A self version N/A 1 N/A N/A qname N/A _get_qname self version N/A N/A qname N/A N/A N/A N/A qname find } 1 N/A _get_namespace N/A N/A self version N/A 1 N/A N/A qname N/A _get_qname self version N/A N/A N/A qname startswith { N/A N/A N/A qname N/A 1 N/A N/A qname find } N/A N/A None N/A _set_tag N/A N/A self tag N/A N/A N/A N/A isinstance N/A self _qname tuple N/A N/A N/A self _qname N/A N/A N/A self _qname copy N/A N/A N/A N/A N/A self _qname N/A 0 startswith { N/A N/A N/A N/A self _qname N/A 0 N/A {%s}%s N/A N/A N/A self _get_namespace 1 tag N/A N/A N/A N/A self _qname N/A 0 tag N/A N/A N/A N/A N/A self _qname startswith { N/A N/A N/A self _qname N/A {%s}%s N/A N/A N/A self _get_namespace tag N/A N/A N/A self _qname tag N/A _set_namespace N/A N/A self namespace N/A N/A N/A N/A isinstance N/A self _qname tuple N/A N/A N/A self _qname N/A N/A N/A self _qname copy N/A namespace N/A N/A N/A N/A self _qname N/A 0 N/A {%s}%s N/A namespace N/A N/A self _get_tag 1 N/A N/A N/A N/A self _qname N/A 0 N/A N/A self _get_tag 1 N/A N/A namespace N/A N/A N/A self _qname N/A {%s}%s N/A namespace N/A N/A self _get_tag 1 N/A N/A N/A self _qname N/A N/A self _get_tag 1 N/A N/A tag N/A property _get_tag _set_tag Provides backwards compatibility for v1 atom.AtomBase classes. N/A namespace N/A property _get_namespace _set_namespace Provides backwards compatibility for v1 atom.AtomBase classes. N/A children extension_elements N/A attributes extension_attributes N/A _get_qname N/A N/A element version N/A N/A N/A N/A isinstance N/A element _qname tuple N/A N/A N/A version N/A len N/A element _qname N/A N/A N/A N/A element _qname N/A N/A version 1 N/A N/A N/A N/A element _qname N/A -1 N/A N/A N/A element _qname N/A _qname_matches N/A N/A tag namespace qname N/A N/A N/A Logic determines if a QName matches the desired local tag and namespace.
  
  This is used in XmlElement.get_elements and XmlElement.get_attributes to
  find matches in the element's members (among all expected-and-unexpected
  elements-and-attributes).
  
  Args:
    expected_tag: string
    expected_namespace: string
    qname: string in the form '{xml_namespace}localtag' or 'tag' if there is
           no namespace.
  
  Returns:
    boolean True if the member's tag and namespace fit the expected tag and
    namespace.
   N/A N/A qname None N/A N/A member_tag None N/A member_namespace None N/A N/A N/A N/A qname startswith { N/A N/A member_namespace N/A qname N/A 1 N/A N/A qname index } N/A member_tag N/A qname N/A N/A N/A N/A qname index } 1 N/A N/A member_namespace None N/A member_tag qname N/A N/A N/A N/A tag None N/A namespace None N/A N/A namespace None N/A member_tag tag N/A N/A tag None N/A member_namespace namespace N/A N/A tag None N/A namespace N/A member_namespace None N/A N/A tag member_tag N/A namespace member_namespace N/A N/A tag member_tag N/A namespace N/A member_namespace None N/A parse N/A N/A xml_string target_class version encoding N/A None 1 None N/A N/A Parses the XML string according to the rules for the target_class.

  Args:
    xml_string: str or unicode
    target_class: XmlElement or a subclass. If None is specified, the
        XmlElement class is used.
    version: int (optional) The version of the schema which should be used when
        converting the XML into an object. The default is 1.
    encoding: str (optional) The character encoding of the bytes in the
        xml_string. Default is 'UTF-8'. 
   N/A N/A target_class None N/A N/A target_class XmlElement N/A N/A isinstance xml_string unicode N/A N/A N/A encoding None N/A N/A xml_string N/A N/A xml_string encode STRING_ENCODING N/A N/A xml_string N/A N/A xml_string encode encoding N/A tree N/A N/A ElementTree fromstring xml_string N/A N/A _xml_element_from_tree tree target_class version N/A N/A Parse parse N/A xml_element_from_string parse N/A XmlElementFromString xml_element_from_string _xml_element_from_tree N/A N/A tree target_class version N/A 1 N/A N/A N/A N/A target_class _qname None N/A N/A instance N/A target_class N/A N/A instance _qname N/A tree tag N/A N/A N/A instance _harvest_tree tree version N/A instance N/A N/A N/A N/A tree tag N/A _get_qname target_class version N/A N/A instance N/A target_class N/A N/A N/A instance _harvest_tree tree version N/A instance N/A None N/A XmlAttribute N/A object N/A __init__ N/A N/A self qname value N/A N/A N/A N/A self _qname qname N/A N/A self value value N/A N/A