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

Class _ElementProxy

source code

object --+
         |
        _ElementProxy

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

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)

source code 

x[i:j]

Use of negative indices is not supported.

__new__(T, S, ...)

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

__repr__(...)
(Representation operator)

source code 
repr(x)
Overrides: object.__repr__
(inherited documentation)

getchildren(...)

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

items(...)

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

keys(...)

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

values(...)

source code 
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.