Package lxml :: Module etree :: Class _ReadOnlyElementProxy

[hide private]
[frames] | no frames]

# Class _ReadOnlyElementProxy

    object --+
             |
            _ReadOnlyElementProxy

Known Subclasses:
  - _AppendOnlyElementProxy

The main read-only Element proxy class (for internal use only!).

Instance Methods | [hide private]

__copy__(self) |

__deepcopy__(self, memo) |

__getitem__(...) Returns the subelement at the given position or the requested slice. |

__iter__(...) |

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

iterchildren(self, tag=None, reversed=False) Iterate over the children of this element. |

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

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

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. 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.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __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)