string jsonString = "{\"Table\":{\"Row\":[{\"Name\":\"张三\",\"Age\":\"20\"},{\"Name\":\"李四\",\"Age\":\"25\"}]}}";
//json to xml
XmlDocument xd1 = new XmlDocument();
xd1 = JsonConvert.DeserializeXmlNode(jsonString);
string xmlstring = xd1.InnerXml;
DebugHelper.WriteDebugLog(xd1.InnerXml);
DebugHelper.WriteDebugLog(xd1.OuterXml);
//xml to json
XmlDocument xd2 = new XmlDocument();
xd2.LoadXml(xmlstring);
string jsonstrin2 = JsonConvert.SerializeXmlNode(xd1);
DebugHelper.WriteDebugLog(string.Format("intputjson:{0}", jsonString));
DebugHelper.WriteDebugLog(string.Format("jsontoxml:{0}",jsonstrin2));