MarkupParser
- class MarkupParser(*args, **kwargs)
Any of the fields in MarkupParser
can be None
, in which case they
will be ignored. Except for the error
function, any of these callbacks
can set an error; in particular the UNKNOWN_ELEMENT
,
UNKNOWN_ATTRIBUTE
, and INVALID_CONTENT
errors are intended to be set from these callbacks. If you set an error
from a callback, parse()
will report that error
back to its caller.