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

Duplicate ?xml when rendering the document #689

Open
ThePlenkov opened this issue Nov 4, 2024 · 2 comments
Open

Duplicate ?xml when rendering the document #689

ThePlenkov opened this issue Nov 4, 2024 · 2 comments

Comments

@ThePlenkov
Copy link

Hi!

I'm testing it now using this page: https://naturalintelligence.github.io/fast-xml-parser/

I noticed that if I provide XML like this:

<?xml version="1.0" encoding="utf-8"?>
<test></test>

it generates me the JSON like this:

{
    "?xml": {
        "@_version": "1.0",
        "@_encoding": "utf-8"
    },
    "test": ""
}

now when I render XML again I have ?xml node described twice:

<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<test></test>

and if I parse such XML of course it fails.

Could you please check why? Is it a bug of the library or just the UI issue? Thanks!

Copy link

github-actions bot commented Nov 4, 2024

We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.

@amitguptagwl
Copy link
Member

This is just in demo, not the library bug.

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