Solved

Convert DataReader to XML

Posted on 2004-09-14
2
3,338 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
ID: 12056826
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
ID: 12057935
This is great, thanks!

ali
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Exceptions 3 46
Simple Injector with Web Service 4 43
SSRS subreport with parameter 3 35
PrintingFoundIt(Almost!(Damn!)) 1 27
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

832 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