WrapperNode#

class xsdata.formats.dataclass.parsers.nodes.WrapperNode(parent)[source]#

XmlNode for wrapper class fields.

This node represents wrap class fields, that don’t actually appear in the serialized document.

These fields simplify classes and this kind of node simply proxies the child requests to the parent node.

Parameters:

parent (ElementNode) – The parent node

ns_map#

The node namespace prefix-URI map

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

This node will never appear in the xml, so it never binds any data.

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 false because no binding takes place.

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

Proxy the next child node to the parent node.

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

  • attrs (Dict) – The element attributes

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

  • position (int) – The current length of the intermediate objects

Return type:

XmlNode

Returns:

The child xml node instance.