Package lxml :: Module etree :: Class __ContentOnlyElement
[hide private]
[frames] | no frames]

Class __ContentOnlyElement



object --+    
         |    
  _Element --+
             |
            __ContentOnlyElement
Known Subclasses:
_Comment, _Entity, _ProcessingInstruction

Instance Methods [hide private]
 
__delitem__(x, y)
del x[y]
 
__delslice__(x, i, j)
del x[i:j]
 
__getitem__(...)
Returns the subelement at the given position.
 
__len__(x)
len(x)
 
__new__(T, S, ...)
Returns: a new object with type S, a subtype of T
 
__setitem__(x, i, y)
x[i]=y
 
__setslice__(x, i, j, y)
x[i:j]=y
 
append(...)
Adds a subelement to the end of this element.
 
get(...)
Gets an element attribute.
 
insert(...)
Inserts a subelement at the given position in this element
 
items(...)
Gets element attributes, as a sequence.
 
keys(...)
Gets a list of attribute names.
 
set(...)
Sets an element attribute.
 
values(...)
Gets element attribute values as a sequence of strings.

Inherited from _Element: __contains__, __copy__, __deepcopy__, __getslice__, __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 _Element (private): _init

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]
  attrib
Element attribute dictionary.
  text
Text before the first subelement.

Inherited from _Element: nsmap, prefix, sourceline, tag, tail

Inherited from object: __class__

Method Details [hide private]

__delitem__(x, y)
(Index deletion operator)

 
del x[y]
Overrides: _Element.__delitem__

__delslice__(x, i, j)
(Slice deletion operator)

 

del x[i:j]

Use of negative indices is not supported.
Overrides: _Element.__delslice__

__getitem__(...)
(Indexing operator)

 
Returns the subelement at the given position.
Overrides: _Element.__getitem__
(inherited documentation)

__len__(x)
(Length operator)

 
len(x)
Overrides: _Element.__len__

__new__(T, S, ...)

 
Returns:
a new object with type S, a subtype of T

Overrides: _Element.__new__

__setitem__(x, i, y)
(Index assignment operator)

 
x[i]=y
Overrides: _Element.__setitem__

__setslice__(x, i, j, y)
(Slice assignment operator)

 

x[i:j]=y

Use of negative indices is not supported.
Overrides: _Element.__setslice__

append(...)

 
Adds a subelement to the end of this element.
Overrides: _Element.append
(inherited documentation)

get(...)

 
Gets an element attribute.
Overrides: _Element.get
(inherited documentation)

insert(...)

 
Inserts a subelement at the given position in this element
Overrides: _Element.insert
(inherited documentation)

items(...)

 
Gets element attributes, as a sequence. The attributes are returned in an arbitrary order.
Overrides: _Element.items
(inherited documentation)

keys(...)

 
Gets a list of attribute names. The names are returned in an arbitrary order (just like for an ordinary Python dictionary).
Overrides: _Element.keys
(inherited documentation)

set(...)

 
Sets an element attribute.
Overrides: _Element.set
(inherited documentation)

values(...)

 
Gets element attribute values as a sequence of strings. The attributes are returned in an arbitrary order.
Overrides: _Element.values
(inherited documentation)