pydantic-xml icon indicating copy to clipboard operation
pydantic-xml copied to clipboard

How to set the DOCTYPE on an exported model?

Open dromer opened this issue 6 months ago • 3 comments

It is very common, and often mandatory, to set the DOCTYPE in the header of the xml file: https://en.wikipedia.org/wiki/Document_type_declaration

I couldn't find anywhere in the documentation on how we can set this information. Is this possible or is this now a feature request?

I assume this would be specific for to_xml() output

dromer avatar Apr 09 '25 09:04 dromer