</pre><pre name="code" class="csharp"> public string Xml { get { if (null == cityTable) return string.Empty; var writer = new StringWriter(); cityTable.WriteXml(writer); string xmlstr = writer.ToString(); writer.Close(); return xmlstr; } }原文链接:https://www.f2er.com/xml/296022.html