xsdata.formats.dataclass.parsers.xml module¶
-
class
xsdata.formats.dataclass.parsers.xml.XmlParser(config=<factory>, context=<factory>, handler=<class 'xsdata.formats.dataclass.parsers.handlers.lxml.LxmlEventHandler'>)[source]¶ Bases:
xsdata.formats.dataclass.parsers.nodes.NodeParserBind xml nodes to dataclasses with event hooks.
- Parameters
handler (
Type[XmlHandler]) – Xml handler typeemit_cache – Cache for qnames to event names
config (
ParserConfig) –context (
XmlContext) –
-
handler¶ alias of
xsdata.formats.dataclass.parsers.handlers.lxml.LxmlEventHandler
-
emit_cache: Dict¶
-
start(clazz, queue, objects, qname, attrs, ns_map)[source]¶ Queue the next xml node for parsing.
Emit a start event with the current element qualified name and attributes.