pydantic_xml.errors.ParsingError: root element not found (actual: {https://website.com}items, expected: items)
The problem is I don't know namespaces in advance and can't use them is nsmap, neither I control what XML we receive
How can such namespaces be easily ignored?
I have this simple model
This model needs to load different XML with arbitrary namespaces like
or
Reading such XML results in
The problem is I don't know namespaces in advance and can't use them is
nsmap
, neither I control what XML we receive How can such namespaces be easily ignored?