De序列化XmlNode时从json到xml的问题 [英] problem from json to xml while De serialize XmlNode
本文介绍了De序列化XmlNode时从json到xml的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i m 转换 json data to xml
my json 数据
{data : {Theabc:{pqr:571,rst:1,unique:1} } }
while 反序列化 XmlNode i 得到 此 错误
' character , hexadecimal value 0x20 ,不能 be 包含 a < span class =code-leadattribute> name
如何 to solve this please 建议 me
解决案
错误信息告诉你你到底需要做什么。
''''字符,十六进制值0x20 ,不能包含在名称。
只需从0x20字符) >Theabc
:
{data:{Theabc:{pqr:571 RST:1, 独特的:1}}}
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
解决方案
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}}}
这篇关于De序列化XmlNode时从json到xml的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文