converting table in a database to XML file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vignesh19
    New Member
    • Jul 2007
    • 9

    converting table in a database to XML file

    Hi,
    Can anyone give me ideas on how to convert a table present in any database to an XML file representation?

    How to represent a table as XML file? and also some sample codes.
  • PareshRathod
    New Member
    • Mar 2007
    • 28

    #2
    Hi Vignesh,

    You can write XML of DataSet by using .WriteXml(strin g fileName) method.
    First fill the dataset using ADO.NET.. then just write the xml file providing the filename of your xml file to your desired path, it will write xml for that dataset.

    Paresh

    Originally posted by vignesh19
    Hi,
    Can anyone give me ideas on how to convert a table present in any database to an XML file representation?

    How to represent a table as XML file? and also some sample codes.

    Comment

    Working...