A wrapper around ElementTree Element objects whose main purpose is to
provide nicer __repr__ and __str__ methods. In addition, any of the
wrapped Element's methods that return other Element objects are
overridden to wrap those values before returning them.
This makes Elements more convenient to work with in interactive
sessions and doctests, at the expense of some efficiency.
|
|
|
|
|
unwrap(self)
Return the Element object wrapped by this wrapper. |
source code
|
|
|
|
|
|
|
__str__(self)
Returns:
the result of applying ElementTree.tostring() to the
wrapped Element object. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|