Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 1st, 2007, 11:48 AM
Registered User
 
Join Date: Mar 2007
Location: Cincinnati, Ohio, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to export the data to XML file format?

I have to export the recordset data to XML file in my vb 6.0 application.

XML file should be in predefined XML format and XDR file is also given along with that.I am using MSXML to do this.

I was wondering if anyone can suggest a better way to do this.




Reply With Quote
  #2 (permalink)  
Old March 13th, 2007, 10:19 AM
Friend of Wrox
 
Join Date: Oct 2006
Location: Northampton, Northants, United Kingdom.
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If it's coming from SQL, you could investigate the use of "FOR XML AUTO" in the query. I am by no means any expert with this, but have used it a little in the past and know that it can produce basic forms of XML.

Regards,

Sean Anderson
Reply With Quote
  #3 (permalink)  
Old April 3rd, 2007, 12:22 PM
Authorized User
 
Join Date: Mar 2006
Location: Chennai, Tamil Nadu, India.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Raghunathan
Default

hi

If You Are Using ADO Recordset Object then the job is simpler

'fill the records from the database table into a ADO Recordset for example rsEmployees

'write the following piece of code to get the xml document from the recordset object along with a Schema

rsEmployees.Save "C:\Data.xml",adPersistXML

thats all u will have the xml format of the recordset data stored in the file C:\Data.xml

hope this wud help u solve the above problem..



Regards,
Raghu
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
export excel file ( format is changed ) urgent palanivel jayanthi ASP.NET 1.0 and 1.1 Professional 1 March 12th, 2007 05:32 PM
export excel file ( format is changed ) urgent palanivel jayanthi ASP.NET 1.0 and 1.1 Basics 1 March 12th, 2007 05:31 PM
export data from Access to XML file with VB2005 larspersoon Visual Basic 2005 Basics 2 November 25th, 2005 09:41 AM
Changing date format in a file export from excel t jonwitts Excel VBA 2 July 21st, 2005 04:22 AM
export data to .dat format chacquard Access VBA 6 January 10th, 2005 03:50 PM



All times are GMT -4. The time now is 11:03 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.