|
|
|
__getitem__(self,
x)
Returns the subelement at the given position or the requested
slice. |
|
|
|
__len__(self)
Returns the number of subelements. |
|
|
a new object with type S, a subtype of T
|
|
|
__setitem__(self,
index,
value)
Replaces the given subelement index or slice. |
|
|
|
append(self,
value)
Adds a subelement to the end of this element. |
|
|
|
get(self,
key,
default=None)
Gets an element attribute. |
|
|
|
insert(self,
index,
value)
Inserts a subelement at the given position in this element |
|
|
|
items(self)
Gets element attributes, as a sequence. The attributes are returned in
an arbitrary order. |
|
|
|
keys(self)
Gets a list of attribute names. The names are returned in an
arbitrary order (just like for an ordinary Python dictionary). |
|
|
|
set(self,
key,
value)
Sets an element attribute. |
|
|
|
values(self)
Gets element attribute values as a sequence of strings. The
attributes are returned in an arbitrary order. |
|
|
Inherited from _Element :
__contains__ ,
__copy__ ,
__deepcopy__ ,
__iter__ ,
__nonzero__ ,
__repr__ ,
__reversed__ ,
addnext ,
addprevious ,
clear ,
extend ,
find ,
findall ,
findtext ,
getchildren ,
getiterator ,
getnext ,
getparent ,
getprevious ,
getroottree ,
index ,
iter ,
iterancestors ,
iterchildren ,
iterdescendants ,
iterfind ,
itersiblings ,
itertext ,
makeelement ,
remove ,
replace ,
xpath
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|