Groups | Blog | Home
all groups > dotnet xml > january 2006 >

dotnet xml : Creating an XML file from a datatable or dataset


Sameer_Vantage
1/12/2006 11:57:02 AM
I need to create an XML file which is in a pre-defined format (All the tags
are defined) from data extracted from a SQL Server database. The XML should
be created in such a way that the tags should match the right data, for e.g.
the XML will have a tag <AccountName></AccountName> and the datatable will
have a column AccountName.

What is the best way to do this ?

Stefan
1/13/2006 5:21:59 AM
[quoted text, click to view]

You can use a specialized tool able to import SQL Server database
content directly into the XML format. You can check oXygen 6.2
(http://www.oxygenxml.com) that does this job (see a demo at
http://www.oxygenxml.com/demo/importDB/importDB.html)
The upcoming version 7.0 (available as beta at
http://www.oxygenxml.com/download-beta.html) is even able to generate a
XML Schema based on the database structure for your imported file.

---------------------------------------------------------------------
Stefan Vasile
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com/
AddThis Social Bookmark Button