Package ptree
[hide private]
[frames] | no frames]

Package ptree

source code

Two drop-in replacements for xml.etree.ElementTree with elements that automatically keep track of parent pointers. This package defines two objects, each of which provide the same interface as the xml.etree.ElementTree module:

Aside from addition of parent pointers, these two objects should act identically to xml.etree.ElementTree.

Note: Mixing of etree implementations is not supported. I.e., you should never construct a tree that combines elements from ParentedTree with elements from MultiParentedTree, or elements from either of these implementations with elements from any other implementation. Doing so may result in incorrect parent pointers and ValueError exceptions.

Submodules [hide private]

Variables [hide private]
  ParentedTree = ElementTreeImplementation(_ParentedElement)
  MultiParentedTree = ElementTreeImplementation(_MultiParentedEl...
  __package__ = 'ptree'
Variables Details [hide private]

MultiParentedTree

Value:
ElementTreeImplementation(_MultiParentedElement)