ElementNode¶
-
class
xsdata.formats.dataclass.parsers.nodes.
ElementNode
(meta, attrs, ns_map, config, context, position, mixed=False, derived=False, substituted=False, assigned=<factory>)[source]¶ XmlNode for complex elements and dataclasses.
- Parameters
meta (
XmlMeta
) – Model xml metadataattrs (
Dict
) – Key-value attribute mappingns_map (
Dict
) – Namespace prefix-URI mapconfig (
ParserConfig
) – Parser configurationcontext (
XmlContext
) – Model context providerposition (
int
) – The node position of objects cachederived (
bool
) – The xml element is derived from a base typemixed (
bool
) –substituted (
bool
) –assigned (
Set
) –
-
bind
(qname, text, tail, objects)[source]¶ Build the object tree for the ending element and return whether the result was successful or not.
This entry point is called when an xml element ends and is responsible to parse the current element attributes/text, bind any children objects and initialize new object.