(If you're viewing the epydoc-generated HTML documentation, click the
'show private' link at the top right of this page to see all the
methods)
|
__init__(self,
parent,
node)
You shouldn't need to instantiate this directly |
source code
|
|
|
_render(self)
Produces well-formed XML of this node's contents, indented as
required |
source code
|
|
|
|
|
|
|
|
|
_keys(self)
Return a list of attribute names |
source code
|
|
|
_values(self)
Returns a list of (attrname, attrval) tuples for this tag |
source code
|
|
|
_items(self)
returns a list of attribute values for this tag |
source code
|
|
|
_has_key(self,
k)
returns True if this tag has an attribute of the given name |
source code
|
|
|
_get(self,
k,
default=None)
returns the value of attribute k, or default if no such attribute |
source code
|
|
|
__len__(self)
returns number of child nodes |
source code
|
|
|
__getitem__(self,
idx)
if given key is numeric, return the nth child, otherwise try to
return the child tag (or list of child tags) having the key as the
tag name |
source code
|
|
|
|
|
_getChild(self,
name)
Returns a list of zero or more child nodes whose tag name is
<name> |
source code
|
|
|
_delChild(self,
child)
Removes given child node |
source code
|
|
|
_addText(self,
value)
Tries to append a child text node, with the given text, to the tree,
and returns the created node object |
source code
|
|
|
_addComment(self,
comment)
Tries to append a child comment node (with the given text value) to
the tree, and returns the create node object |
source code
|
|
|
_save(self,
where=None)
Generates well-formed XML from just this node, and saves it to a
file. |
source code
|
|
|
_toxml(self)
renders just this node out to raw xml code |
source code
|
|