lxml
xsdata.formats.dataclass.serializers.tree.lxml
LxmlTreeSerializer dataclass
Bases: TreeSerializer
Source code in xsdata/formats/dataclass/serializers/tree/lxml.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |
render(obj)
Serialize the input model instance to element tree.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj | T | The input model instance to serialize | required |
Returns:
| Type | Description |
|---|---|
Element | The generated element tree instance. |
Source code in xsdata/formats/dataclass/serializers/tree/lxml.py
11 12 13 14 15 16 17 18 19 20 21 22 | |