Solved

Convert DataReader to XML

Posted on 2004-09-14
2
3,314 Views
Last Modified: 2011-07-06
HI

I want to convert a DataReader to an XML doc, the same way that in VB I would use ADO to convert a recordset to an XML doc, and the Schema and data node would be there, will all the relevant schmea information

Thanks

ali
0
Comment
Question by:nfs007
2 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 250 total points
Comment Utility
maybe you could look at the dataset which has a writexml() method

you can find a sample of filling a dataset here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatasetclasstopic.asp

and one of writing with the method above here
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatadatasetclasswritexmltopic1.asp

just an idea
0
 
LVL 2

Author Comment

by:nfs007
Comment Utility
This is great, thanks!

ali
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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 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

12 Experts available now in Live!

Get 1:1 Help Now