Method Summary |
Inherited from ElementNode |
|
__init__ (self,
**attribs)
|
|
__delattr__ (self,
name)
|
|
__delitem__ (self,
index)
|
|
__getattr__ (self,
name)
|
|
__getitem__ (self,
index)
|
|
__iter__ (self)
|
|
__len__ (self)
|
|
__nonzero__ (self)
|
|
__repr__ (self)
|
|
__setattr__ (self,
name,
value)
|
|
__setitem__ (self,
index,
obj)
|
|
__str__ (self)
|
|
__unicode__ (self)
|
|
add (self,
klass,
**kwargs)
|
|
add_text (self,
text)
Adding text to elements is so common, there is a special method for
it. |
|
append (self,
obj)
|
|
attributes (self)
|
|
comment (self)
|
|
destroy (self)
destroy() Remove this node and all child node references. |
|
detach (self)
|
|
extend (self,
objlist)
|
|
find (self,
elclass,
**attribs)
|
|
find_elements (self,
pathelement)
|
|
full_repr (self)
|
|
fullpath (self)
fullpath() returns the ElementNode's full path as a string in xpath
format. |
|
get (self,
index,
default)
|
|
get_attribute (self,
name)
get_attribute(name) This exists to set attributes that have names with
illegal Python identifier characters. |
|
get_children (self)
|
|
get_element (self,
pathelement)
|
|
get_parent (self)
|
|
getall (self,
elclass,
depth,
collect)
|
|
has_attribute (self,
name)
|
|
has_attributes (self)
|
|
has_children (self)
|
|
has_key (self,
index)
|
|
hasAttributes (self)
|
|
index (self,
obj)
|
|
inherit_indent (self)
clears indentation flag so that it may be acquired from parent. |
|
insert (self,
index,
obj)
|
|
matchpath (self,
pathelement)
|
|
node (self)
|
|
pathname (self)
pathname() returns the ElementNode as a string in xpath format. |
|
processing_instruction (self)
|
|
reparent (self,
newparent)
|
|
replace_text (self,
text)
|
|
set_attribute (self,
name,
val)
set_attribute(name, value) This exists to set attributes that have
names with illegal Python identifier characters. |
|
set_indented (self,
tf)
|
|
set_inline (self,
tf)
|
|
set_level (self,
level)
|
|
set_namespace (self,
ns)
|
|
text (self)
|
|
tostring (self)
|
|
use_lowercase (self)
|
|
use_truecase (self)
|
|
use_uppercase (self)
|