Solved

Create XML from a dataset using vb.net

Posted on 2014-07-24
2
334 Views
Last Modified: 2014-07-24
I am new to generating XML using vb.net. I have a SQL database and have a stored procedure which pulls out approximately 700 rows and has 5 columns.  I use a SQl dataadapter and then fill the data in the dataset
exampl

Dim 1dataset as DataDs = New DataDS

DataSession.Fill(1dataset , New SqlDataAdapter()  {MyData})

Now my 1dataset  has all the data and I need to create a xml from this. I know I have to use System.xml.serialization  could anyone help please.

Regards

YRKS
0
Comment
Question by:ChanderMadhaviGmail
2 Comments
 
LVL 4

Accepted Solution

by:
Nuno Rogado earned 500 total points
ID: 40218070
Hi,

Dim xmlDS As String = 1dataset.GetXml()
then save xmlDS to a file

or

1dataset.WriteXml("myDataSet.xml")

I hope this answer will help you solving your problem.

Best Regards,
Nuno Rogado
0
 

Author Closing Comment

by:ChanderMadhaviGmail
ID: 40218294
Thanks

I have another question relateing to this. Will post it right away.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now