Text#
Primitive types#
Field of a primitive type is bound to a local element text.
Model
class Company(BaseXmlModel):
class Config:
anystr_strip_whitespace = True # to strip text whitespaces
description: str
Document
<Company>
Space Exploration Technologies Corp.
</Company>
{
"description": "Space Exploration Technologies Corp."
}