Package lxml :: Module pyclasslookup :: Class _ElementProxy
[hide private]
[frames] | no frames]

Class _ElementProxy

object --+
         |
        _ElementProxy

Instance Methods [hide private]
 
__getitem__(...)
Returns the subelement at the given position.
 
__getslice__(x, i, j)
x[i:j]
 
__len__(x)
len(x)
a new object with type S, a subtype of T
__new__(T, S, ...)
 
__nonzero__(x)
x != 0
 
__repr__(...)
repr(x)
 
get(...)
Gets an element attribute.
 
getchildren(...)
Returns all subelements.
 
getnext(...)
Returns the following sibling of this element or None.
 
getparent(...)
Returns the parent of this element or None for the root element.
 
getprevious(...)
Returns the preceding sibling of this element or None.
 
items(...)
Gets element attributes, as a sequence.
 
keys(...)
Gets a list of attribute names.
 
values(...)
Gets element attributes, as a sequence.

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

Properties [hide private]
  attrib
  prefix
Namespace prefix or None.
  sourceline
Original line number as found by the parser or None if unknown.
  tag
Element tag
  tail
Text after this element's end tag, but before the next sibling element's start tag.
  text
Text before the first subelement.

Inherited from object: __class__

Method Details [hide private]

__getslice__(x, i, j)
(Slicling operator)

 

x[i:j]

Use of negative indices is not supported.

__new__(T, S, ...)

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

__repr__(...)
(Representation operator)

 

repr(x)

Overrides: object.__repr__
(inherited documentation)

getchildren(...)

 

Returns all subelements. The elements are returned in document order.

items(...)

 

Gets element attributes, as a sequence. The attributes are returned in an arbitrary order.

keys(...)

 

Gets a list of attribute names. The names are returned in an arbitrary order (just like for an ordinary Python dictionary).

values(...)

 

Gets element attributes, as a sequence. The attributes are returned in an arbitrary order.


Property Details [hide private]

tail

Text after this element's end tag, but before the next sibling element's start tag. This is either a string or the value None, if there was no text.

text

Text before the first subelement. This is either a string or the value None, if there was no text.