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.event_names – Cache for qnames to event names.
config (
ParserConfig) –context (
XmlContext) –
-
handler¶ alias of
xsdata.formats.dataclass.parsers.handlers.lxml.LxmlEventHandler
-
event_names: Dict¶
-
start(queue, qname, attrs, ns_map, objects, clazz)[source]¶ Queue the next xml node for parsing.
Emit a start event with the current element qualified name and attributes.