json转xml:

XmlDocument doc = (XmlDocument)JsonConvert.DeserializeXmlNode(jsonText,"root");

xml转json:

XmlDocument doc = new XmlDocument();
doc.Load(xmlFileName);
string jsonText = JsonConvert.SerializeXmlNode(doc,Formatting.None,true);

05-11 22:19