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

Type _ElementProxy

object --+
         |
        _ElementProxy


Method Summary
  __getitem__(x, y)
x.__getitem__(y) <==> x[y]
  __getslice__(x, i, j)
Use of negative indices is not supported.
  __len__(x)
x.__len__() <==> len(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __nonzero__(x)
x.__nonzero__() <==> x != 0
  __repr__(x)
x.__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
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
PyCObject __pyx_vtable__ = <PyCObject object at 0x8289098>
getset_descriptor attrib = <attribute 'attrib' of 'lxml.pyclasslookup._Ele...
getset_descriptor prefix = <attribute 'prefix' of 'lxml.pyclasslookup._Ele...
getset_descriptor sourceline = <attribute 'sourceline' of 'lxml.pyclassloo...
getset_descriptor tag = <attribute 'tag' of 'lxml.pyclasslookup._ElementPr...
getset_descriptor tail = <attribute 'tail' of 'lxml.pyclasslookup._Element...
getset_descriptor text = <attribute 'text' of 'lxml.pyclasslookup._Element...

Method Details

__getitem__(x, y)
(Indexing operator)

x.__getitem__(y) <==> x[y]
Returns:
x[y]

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

Use of negative indices is not supported.
Returns:
x[i:j]

__len__(x)
(Length operator)

x.__len__() <==> len(x)
Returns:
len(x)

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

__nonzero__(x)
(Boolean test operator)

x.__nonzero__() <==> x != 0
Returns:
x != 0

__repr__(x)
(Representation operator)

x.__repr__() <==> repr(x)
Returns:
repr(x)
Overrides:
__builtin__.object.__repr__

get(...)

Gets an element attribute.

getchildren(...)

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

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

Class Variable Details

__pyx_vtable__

Type:
PyCObject
Value:
<PyCObject object at 0x8289098>                                        

attrib

Type:
getset_descriptor
Value:
<attribute 'attrib' of 'lxml.pyclasslookup._ElementProxy' objects>     

prefix

Type:
getset_descriptor
Value:
<attribute 'prefix' of 'lxml.pyclasslookup._ElementProxy' objects>     

sourceline

Type:
getset_descriptor
Value:
<attribute 'sourceline' of 'lxml.pyclasslookup._ElementProxy' objects> 

tag

Type:
getset_descriptor
Value:
<attribute 'tag' of 'lxml.pyclasslookup._ElementProxy' objects>        

tail

Type:
getset_descriptor
Value:
<attribute 'tail' of 'lxml.pyclasslookup._ElementProxy' objects>       

text

Type:
getset_descriptor
Value:
<attribute 'text' of 'lxml.pyclasslookup._ElementProxy' objects>       

Generated by Epydoc 2.1 on Fri Aug 17 13:52:29 2007 http://epydoc.sf.net