standard
xsdata.formats.dataclass.parsers.nodes.standard
StandardNode
Bases: XmlNode
XmlNode for elements with a standard xsi:type.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
datatype | DataType | The element standard xsi data type | required |
ns_map | Dict | The element namespace prefix-URI map | required |
nillable | bool | Specifies whether nil content is allowed | required |
derived_factory | Optional[Type] | The derived element factory | required |
Source code in xsdata/formats/dataclass/parsers/nodes/standard.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
bind(qname, text, tail, objects)
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:
Name | Type | Description | Default |
---|---|---|---|
qname | str | The element qualified name | required |
text | Optional[str] | The element text content | required |
tail | Optional[str] | The element tail content | required |
objects | List | The list of intermediate parsed objects | required |
Returns:
Type | Description |
---|---|
bool | Always true, it's not possible to fail during parsing |
bool | for this node. |
Source code in xsdata/formats/dataclass/parsers/nodes/standard.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
child(qname, attrs, ns_map, position)
Raise an exception if there is a child element inside this node.
Source code in xsdata/formats/dataclass/parsers/nodes/standard.py
74 75 76 |
|