Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Numeric tags are not valid XML #4

Closed
paulmdx opened this Issue · 3 comments

2 participants

Paul M Ryan McGreal
Paul M

I converted some JSON to XML with an object as follows:

{"119":"test"}

Which generates XML:

<119 type="str">test</119>

Both Firefox and Chrome tell me this is invalid XML.

Suggest patch as follows:

line#
56 if k.isdigit():
57 k = 'n' + k

Ryan McGreal

Great catch, and thanks for sharing. I'll implement your fix this evening.

Ryan McGreal

The fix is committed and pushed to github. Thanks again for finding the issue and suggesting a fix!

Paul M

No worries. Thanks for your feedback and changing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.