WildcardNode#
- class xsdata.formats.dataclass.parsers.nodes.WildcardNode(var, attrs, ns_map, position, factory)[source]#
XmlNode for extensible elements that can hold any attribute and content.
The resulting object tree will be a
AnyElement
instance.- Parameters:
- bind(qname, text, tail, objects)[source]#
Bind the parsed data into a generic element.
This entry point is called when a xml element ends and is responsible to parse the current element attributes/text, bind any children objects and initialize new generic element that can fit any xml string.
- classmethod fetch_any_children(position, objects)[source]#
Fetch the children of this node in the objects list.
The children are removed from the objects list.
- child(qname, attrs, ns_map, position)[source]#
Initialize the next child wildcard node to be queued, when an element starts.
This entry point is responsible to create the next node type with all the necessary information on how to bind the incoming input data. Wildcard nodes always return wildcard children.