Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xml Elements on Render adding ns0 and anmesmases like xmlns:ns0="http://www.omgeo.com/schema/v1.0" #1117

Open
ltsetskhladze opened this issue Feb 9, 2025 · 1 comment

Comments

@ltsetskhladze
Copy link

Hi

I am using XsData XmlSerializer i am trying to render xml string to normal xml but like clean xml so i dont want this ns0 and so on

Image

like this in image i just need normal clean way without those namespases what is the reason for it ?

@tefra
Copy link
Owner

tefra commented Feb 16, 2025

Hi @ltsetskhladze

You can read more about namespaces and prefixes here
https://www.w3schools.com/XML/xml_namespaces.asp

In order to avoid the prefix completely you can use the default namespace config
https://xsdata.readthedocs.io/en/latest/data_binding/xml_serializing/#default-namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants