天天看點

C#将XML轉換成JSON轉換XML

json2xml

 預定義的Json字元串如上

  XmlDocument doc1 = JsonConvert.DeserializeXmlNode(json);

  Console.WriteLine(doc1.OuterXml);

XmlDocument doc2 = JsonConvert.DeserializeXmlNode(json1);

  Console.WriteLine(doc2.OuterXml);

http://dotnet.chinaitlab.com/CSharp/927201.html

http://www.tuicool.com/articles/n2Uzya