XmlEventHandler#
- class xsdata.formats.dataclass.parsers.handlers.XmlEventHandler(parser, clazz)[source]#
Event handler based on
xml.etree.ElementTree.iterparse()
api.- Parameters:
- parse(source)[source]#
Parse an XML document from a system identifier or an InputSource or directly from an xml Element or ElementTree.
When source is an Element or ElementTree the handler will walk over the objects structure.
When source is a system identifier or an InputSource the parser will ignore comments and recover from errors.
When config process_xinclude is enabled the handler will parse the whole document and then walk down the element tree.
- Return type: