Click here to Skip to main content
14,976,129 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
CSS
i m converting json data to xml

my json data is


{"data":{"Theabc ":{"pqr":571,"rst":1,"unique":1}}}

while Deserialize XmlNode i got this error

The ' ' character, hexadecimal value 0x20, cannot be included in a name


how to solve this please suggest me
Posted

1 solution

The error message tells you exactly what you need to do.

"The ' ' character, hexadecimal value 0x20, cannot be included in a name".

Just remove the space (0x20 character) from "Theabc ":

{"data":{"Theabc":{"pqr":571,"rst":1,"unique":1}}}
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900