摘要:
private static string XmlToJSON(XmlDocument xmlDoc){ StringBuilder sbJSON = new StringBuilder(); sbJSON.Append("{ "); XmlToJSONnode(sbJSON, xmlDoc.DocumentElement, true); sbJSON.Append("}"); return sbJSON.ToString();}// XmlToJSONnode: Output an XmlElement, possibly as part of a h 阅读全文