NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2490 most downloaded on PyPI
pydantic xml extension
Last release 1 months ago
08 Aug 2026
Release timing varies
gaps range from 8 days to 4 months
Nearly every release is documented
notes for 51 of 51 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
56 releases · first in 2022
One column per quarter.
fix: computed field inheritance with pydantic 2.13
feat: plain validator support added.
feat: hide_input_in_errors model config flag support added.
feat: python 3.14 support added.
fix: pydantic 2.12 compatibility problems fixed.
fix: xml_field_validator/serializer type annotations fixed. See #277
fix: func type aliases moved to model module to make get_type_hints work correctly.
fix: multiple field annotations bug fixed. See #268 .
feat: annotated form of field serializer/validator support added. See #261 .
exception is raised if namespace alias is not found in the namespace map.
model deserialization additional arguments added. See https://github.com/dapper91/pydantic-xml/issues/247
reserved namespaces registration skipped.
raw element deserialization bug fixed.
pydantic 2.10 mypy plugin compatibility fixed. See https://github.com/dapper91/pydantic-xml/issues/232
union validation error location fixed.
multiple pydantic model validators bug fixed.
custom field xml serializer/validator support added. See https://github.com/dapper91/pydantic-xml/pull/212
collection of tagged union deserialization bug fixed. See https://github.com/dapper91/pydantic-xml/issues/206
exclude_none and exclude_unset serialization flags support added. See.
- named tuple support added. See
dynamic model creation support added. See
mypy plugin dataclass_transform decorated model bug fixed.
mypy plugin dataclass_transform decorated model bug fixed. See https://github.com/dapper91/pydantic-xml/issues/152#issuecomment-2057949479.
PEP-681 (Data Class Transforms) support added. See
pydantic 2.6 incompatibility fixed. See https://github.com/dapper91/pydantic-xml/issues/167
union collection deserialization bug fixed. See https://github.com/dapper91/pydantic-xml/pull/165.
mypy plugin added. See https://pydantic-xml.readthedocs.io/en/latest/pages/misc.html#mypy.
validation errors provide the full path to the malformed field (including nested sub-models).
lxml parser only).See https://github.com/dapper91/pydantic-xml/pull/150.
nillable element support added. See https://github.com/dapper91/pydantic-xml/pull/146.
adjacent sub-elements support added. See https://github.com/dapper91/pydantic-xml/pull/143.
attributes with default namespace bug fixed. See https://github.com/dapper91/pydantic-xml/issues/137.
bool type encoding format changed from 'True' to 'true'. See https://github.com/dapper91/pydantic-xml/issues/126.
root model default value bug fixed.
raw element missing tail bug fixed. See https://github.com/dapper91/pydantic-xml/issues/118.
model validator 'before' mode support added.
model level skip_empty parameter added.
skip_empty parameter added.pydantic extra='forbid' parameter is being applied to xml elements too. See https://github.com/dapper91/pydantic-xml/pull/106.
raw element typed fields support added. See https://github.com/dapper91/pydantic-xml/issues/14.
library upgraded to pydantic version 2. See https://docs.pydantic.dev/2.0/migration/
library upgraded to pydantic version 2. See https://docs.pydantic.dev/2.0/migration/
Breaking changes:
BaseGenericXmlModel but from BaseXmlModel.RootXmlModel from now on.New features:
TypedDict. See for more information.library upgraded to pydantic version 2. See https://docs.pydantic.dev/2.0/migration/
generic models are no longer inherited from BaseGenericXmlModel but from BaseXmlModel.
custom root type declaration has been changed. It must inherit RootXmlModel from now on.
encoding customization api has been changed. See https://pydantic-xml.readthedocs.io/en/v2.0.0/pages/misc.html#encoding
element attributes can be bound to TypedDict. See https://pydantic-xml.readthedocs.io/en/v2.0.0/pages/data-binding/mappings.html#typed-dict
tagged unions support added. See https://pydantic-xml.readthedocs.io/en/v2.0.0/pages/data-binding/unions.html#discriminated-unions
computed entities support added. See https://pydantic-xml.readthedocs.io/en/v2.0.0/pages/misc.html#computed-entities
unparameterized root models serializer generation bug fixed. Affected by https://github.com/pydantic/pydantic/pull/7119.
XmlModelMeta accepts ModelMetaclass directly. See https://github.com/dapper91/pydantic-xml/pull/90.
- uuid type support added. - tagged unions support added.
pydantic validation context support added.
library upgraded to pydantic version 2.
library upgraded to pydantic version 2.
Breaking changes:
RootXmlModel from now on. See for more details.BaseGenericXmlModel but from BaseXmlModel. See.New features:
library upgraded to pydantic version 2. See https://docs.pydantic.dev/2.0/migration/
custom root type serialization format changed.
from_xml, from_xml_tree methods return type bound to cls type. This resolves the problem with mypy checker. See https://github.com/dapper91/pydantic-x
forward refs support added. See https://github.com/dapper91/pydantic-xml/pull/61
piped union typehints support added. See https://github.com/dapper91/pydantic-xml/issues/56
model parameters inheritance bug fixed. See https://github.com/dapper91/pydantic-xml/issues/51
xml model encoding api unified with pydantic json encoding api
ipaddress objects serialization support added
field default parameter support added.
recursive (self-referencing) models support added.
attribute default namespace bug fixed.
default namespace support added.
namespace inheritance bug fixed.
first library version implemented
Your coding agent can read these notes before it upgrades. Set up the MCP server →