DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: Sample Code

  1. #1
    Bill Putnam Guest

    Sample Code


    I need to take some MDB files, and use VB/ADO to open
    them then store the data in XML files. I do not want
    to re-invent the wheel. Any specific sample code or
    URLs to web sites that would cover this?

  2. #2
    Phil Pastor Guest

    Re: Sample Code


    Bill Putnam wrote in message <38dbb815$1@news.devx.com>...
    >
    >I need to take some MDB files, and use VB/ADO to open
    >them then store the data in XML files. I do not want
    >to re-invent the wheel. Any specific sample code or
    >URLs to web sites that would cover this?


    Following is copied from an earlier post. (I hope that's OK, David)

    I thought that the easiest way to write an XML file is by using the
    recordset
    save method:

    Dim file_name as string
    file_name = "c:\xml\xml_tst.xml"
    Dim rs as recordset
    '--establish connection
    '--open the recordset

    Rs.save "file_name", adPersistXML


    And the XML file is created with no other work. This requires ADO 2.5

    David




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links