datatable转XML

前端之家收集整理的这篇文章主要介绍了datatable转XML前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
</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

猜你在找的XML相关文章