如何将数据库数据转换成XML文件 [英] how to convert data base data to XML file

查看:179
本文介绍了如何将数据库数据转换成XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问:

我是一个初学者到XML.I有一些数据来自我的数据库,我想将这些数据转换成 XML 文件,将其导入到具体方案是later..What必要的步骤,这样做呢?请举例和文章如果可能的话?

I'm a beginner to the XML.I have some data comes from my database, and i wanna to convert these data to XML file,to import it to a specific program later..What are the required steps to do this?Please examples and articles if possible?

需要一个像,但动态

推荐答案

的getXML()是DataSet中的函数来获取XML。

GetXml() is the function with DataSet to get xml.


DataSet ds = new DataSet();
 // fill dataset from database
ds.GetXml();

希望会有所帮助。

Hope will Help.

这篇关于如何将数据库数据转换成XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆