A SAX handler that takes a set of element paths and creates a series of DOM chunks matching the element paths for individual processing. Designed for Python 2.2. or greater. Copyright 2004 Fourthought Inc, USA. This work is licensed under Creative Commons Attribution 1.0 For details: http://creativecommons.org/licenses/by/1.0/
|
Classes:
|
Globals:
|
trim_to_paths - a list of lists of tuples. Each tuple is of
the form (namespace, local-name), providing one segment
in a path of contained elements
[
[ (None, u'monty'), (None, u'python') ],
[ (None, u'monty'), (None, u'spam'), ('urn:dummy', u'eggs') ]
]
If None (the default, a DOM node will be created representing
the entire tree.
chunk_consumer - a callable object taking a DOM node. It will be
invoked as each DOM chunk is prepared.
domimpl - DOM implemention to build, e.g. mindom (the default)
or cDomlette or pxdom (if you have the right third-party
packages installed).
owner_doc - for advanced uses, if you want to use an existing
DOM document object as the owner of all created nodes.