Public Member Functions | |
def | __contains__ |
def | __getattr__ |
def | __getitem__ |
def | __init__ |
def | __len__ |
def | __nonzero__ |
def | __repr__ |
def | __str__ |
def | attributes |
Private Member Functions | |
def | _add_xml_attr |
Private Attributes | |
_attrs | |
_data | |
_ncDict |
Definition at line 9 of file XML2Python.py.
def python::XML2Python::DataNode::__init__ | ( | self, | |
kwargs | |||
) |
Definition at line 11 of file XML2Python.py.
def python::XML2Python::DataNode::__contains__ | ( | self, | |
name | |||
) |
Definition at line 26 of file XML2Python.py.
def python::XML2Python::DataNode::__getattr__ | ( | self, | |
name | |||
) |
Definition at line 32 of file XML2Python.py.
def python::XML2Python::DataNode::__getitem__ | ( | self, | |
key | |||
) |
Definition at line 20 of file XML2Python.py.
def python::XML2Python::DataNode::__len__ | ( | self | ) |
Definition at line 16 of file XML2Python.py.
def python::XML2Python::DataNode::__nonzero__ | ( | self | ) |
Definition at line 29 of file XML2Python.py.
def python::XML2Python::DataNode::__repr__ | ( | self | ) |
Definition at line 55 of file XML2Python.py.
def python::XML2Python::DataNode::__str__ | ( | self | ) |
Definition at line 52 of file XML2Python.py.
def python::XML2Python::DataNode::_add_xml_attr | ( | self, | |
name, | |||
value | |||
) | [private] |
Definition at line 38 of file XML2Python.py.
00039 : 00040 change = self._ncDict.get (name) 00041 if change: 00042 name = change 00043 if name in self._attrs: 00044 # multiple attribute of the same name are represented by a list 00045 children = self._attrs[name] 00046 if not isinstance(children, list): 00047 children = [children] 00048 self._attrs[name] = children 00049 children.append(value) 00050 else: 00051 self._attrs[name] = value
def python::XML2Python::DataNode::attributes | ( | self | ) |
Definition at line 61 of file XML2Python.py.
python::XML2Python::DataNode::_attrs [private] |
Definition at line 11 of file XML2Python.py.
python::XML2Python::DataNode::_data [private] |
Definition at line 11 of file XML2Python.py.
python::XML2Python::DataNode::_ncDict [private] |
Definition at line 11 of file XML2Python.py.