all groups > dotnet xml > may 2005 >
You're in the

dotnet xml

group:

dataset to xml


dataset to xml helpful sql
5/25/2005 3:18:58 PM
dotnet xml:
Hi all,
I have a DataSet with one table that has more than one row. I need to
programmatically generate simple xml file from it. I need to include data
from only one row.

Example:

<datasetname>
<tablename>
<column1name>value</column1name>
<column2name>value</column2name>
<column3name>value</column3name>
</tablename>
</databasename>

How can I do this?

Thanks.

Re: dataset to xml vMike
5/25/2005 7:37:10 PM

[quoted text, click to view]
dim ds as dataset = yourdataset
ds.writexml("strpathandfilename"))

Re: dataset to xml vMike
5/25/2005 7:47:35 PM

[quoted text, click to view]
for one row you would need to get table(0) of the dataset and do a select
first.


AddThis Social Bookmark Button