Home | Trees | Indices | Help |
|
---|
|
object --+ | ParseContext
is a scratchpad for any kind of data parsers want to pass to feed methods.
These objects are available to the feed methods as their first objects.
If restricted is True, embedded code must raise an error.
You should set an eventSource using the setter provided. This is the iterparse instance the events are coming from (or something else that has a pos attribute returning the current position).
You can register exit functions to do some "global" cleanup. Parsers should call runExitFuncs right before they return the results; this arranges for these functions to be called. The signature of an exit function is exitfunc(rootStruct, parseContext) -> whatever.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
pos returns a token stringifying into a position guess. |
|
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
is called by active tags to indicate they're replaying events. The main effect right now is to suppress diagnostics for overwritten ids. But let's see what else we might want to use it for. The API to see if we're replaying: replayLevel>0.
|
enters a value in the id map. We allow overriding in id. That should not happen while parsing and XML document because of their uniqueness requirement, but might come in handy for programmatic manipulations. We'll still emit an Info in that case (and may need to find a way to suppress it). |
returns the object last registred for id. You probably want to use resolveId; getById does no namePath or resource descriptor resolution. |
returns the object referred to by the complex id. See the resolveId function. |
Property Details |
posreturns a token stringifying into a position guess.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |