public static string JsonToXml(string strJson)
{
string Xml = "";
XmlDictionaryReader reader = JsonReaderWriterFactory.CreateJsonReader(Encoding.UTF8.GetBytes(strJson), XmlDictionaryReaderQuotas.Max);
XmlDocument doc = new XmlDocument();
doc.Load(reader);
Xml = doc.InnerXml;
return Xml;
}
json转化为xml
最新推荐文章于 2024-08-08 11:38:40 发布