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

Root and header not formed #101

Open
demongolem-biz2 opened this issue Apr 7, 2023 · 1 comment
Open

Root and header not formed #101

demongolem-biz2 opened this issue Apr 7, 2023 · 1 comment

Comments

@demongolem-biz2
Copy link

demongolem-biz2 commented Apr 7, 2023

I have a dict that I converted using xml = dict2xml(a) and what I got back is

<Body>B</Body>
<Footer>F</Footer>
<Title>T</Title>

when a is

a = {'Title': 'T', 'Body': 'B', 'Footer': 'F'}

So it is out of order and not a full xml document with root and header

@javadev
Copy link

javadev commented Aug 22, 2023

{"Title": "T", "Body": "B", "Footer": "F"}

may be converted to xml

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <Title>T</Title>
  <Body>B</Body>
  <Footer>F</Footer>
</root>

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