pydantic-xml
pydantic-xml copied to clipboard
python xml for humans
e.x. ``` class SomeModel(BaseXmlModel): dict_content: Dict @field_validator('dict_content', mode="before") def _check_dict_content( cls, value: Any, ) -> Any: try: return orjson.loads(value) except orjson.JSONDecodeError as exc: capture_exception(exc) pass return {} ``` if worked...
I have the following schema (from a bigger xml) which defines a node as mandatory:  However since there are many optional values in the xml I'd like to serialize...
I'm trying to model the `...` element of the [gpx schema](https://www.topografix.com/GPX/1/1/), which accepts a list of "any elements from a namespace other than this schema's namespace". For example, something like:...
Hello and thanks again for this amazing tool / lib :) I have a question regarding one of my parser: `` `` How to best handle those _xsi:type_ ? I...