Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Numeric tags are not valid XML #4

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:


Which generates XML:

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

Both Firefox and Chrome tell me this is invalid XML.

Suggest patch as follows:

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.