StandardNode#

class xsdata.formats.dataclass.parsers.nodes.StandardNode(datatype, ns_map, nillable, derived_factory)[source]#

XmlNode for elements with a standard xsi:type.

Parameters:
  • datatype (DataType) – The element standard xsi data type

  • ns_map (Dict) – The element namespace prefix-URI map

  • nillable (bool) – Specifies whether nil content is allowed

  • derived_factory (Optional[Type]) – The derived element factory

bind(qname, text, tail, objects)[source]#

Bind the parsed data into an object for the ending element.

This entry point is called when a xml element ends and is responsible to parse the current element text content.

Parameters:
  • qname (str) – The element qualified name

  • text (Optional[str]) – The element text content

  • tail (Optional[str]) – The element tail content

  • objects (List) – The list of intermediate parsed objects

Return type:

bool

Returns:

Always true, it’s not possible to fail during parsing for this node.

child(qname, attrs, ns_map, position)[source]#

Raise an exception if there is a child element inside this node.

Return type:

XmlNode