LxmlEventHandler¶
- class xsdata.formats.dataclass.parsers.handlers.LxmlEventHandler(parser, clazz, queue=<factory>, objects=<factory>)[source]¶
Event handler based on
lxml.etree.iterparse
api.- Parameters
parser (
PushParser
) – The parser instance to feed with eventsclazz (
Optional
[Type
]) – The target binding model. If None the parser will auto locate it from the active xml context instancequeue (
List
) – The XmlNode queueobjects (
List
) – The list of intermediate parsed objects, eg [(qname, object)]
- parse(source)[source]¶
Parse an XML document from a system identifier or an InputSource.
The xml parser will ignore comments, recover from errors. The parser will parse the whole document and then walk down the tree if the process xinclude is enabled.