P4D objects are lazy wrappers around nested lists that store XML or
P4D data.
|
__init__(self,
tree,
parent=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
|
|
|
|
|
|
comment(self)
Seeks for single P4D comment object ( characterized by tag = '*' )
and returns its comment text. |
|
|
|
CDATA(self)
Seeks for single P4D CDATA object ( characterized by tag = '**' ) and
returns its CDATA text. |
|
|
|
xmlstr(self,
xml_declaration=False,
strip_p4d=True,
xmlprinter=<class 'EasyExtend.langlets.p4d.xmlutils.xmlprinter'>)
Creates XML string from current P4D object. |
|
|
|
p4dstr(self,
name='
' ,
p4d_kwd=True)
Creates P4D string from current P4D object. |
|
|
|
search(self,
filter_function)
Searches for elements in the children of this P4D node for which
filter_function(Item) == True. |
|
|
|
namespace(self,
prefix=None) |
|
|
|
attributes(self)
Returns all attributes of this P4D element. |
|
|
str
|
attribute(self,
name)
Attribute accessor of a given name for this P4D element. |
|
|
|
|
|
text(self)
Returns textual content of this P4D node. |
|
|
|
first_child(self)
Returns the first child object of this P4D node. |
|
|
|
children(self,
tag=None)
Returns all child P4D nodes of this node. |
|
|
|
get(self,
tag)
Like child(tag) but doesn't raise an exception when child was not
found. |
|
|
|
child(self,
tag)
Returns first child P4D node with a given tag. |
|
|
|
|
|
|
|
__setattr__(self,
name,
value)
x.__setattr__('name', value) <==> x.name = value |
|
|
|
_create_attributes(self,
attrs) |
|
|
|
_extract_from_qname(self,
name) |
|
|
|
_lazy_child_access(self,
i) |
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__str__
|