Click here to Skip to main content
Licence 
First Posted 23 Oct 2001
Views 49,793
Bookmarked 22 times

Use XSLT to convert ADO Recordsets into delimited files

By | 29 Oct 2001 | Article
Transform any XML persisted ADO Recordset into a delimited text file.
 
Part of The SQL Zone sponsored by
See Also

Introduction

The rs2txt.xsl is an Extensible Style Sheet that will convert any ADO RecordSet, persisted in XML format, to a delimited, string-qualified file. You will need ADO 2.1 or later in order to persist ADO RecordSets as XML. Please see the VB6 demo for an example of how to use this stylesheet.

Environment Used

  • MDAC 2.6
  • Microsoft XML, version 4
  • VB 6

Usage Notes

You can easily change the desired delimiter and string-qualifier by modifying the value of the delimiter and qualifier variables at the top-level of the stylesheet. If you wish to have no qualifier, just set the value of the qualifier variable to an empty xsl:text element.

The string-qualifier is currently only used on fields with a data type of string. All other types will not use a qualifier.

References

  • For more information about the ADO XML Persistence format, consult this web page.
  • For the latest MDAC, visit here.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

simulant

Web Developer

United States United States

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
Generaluse of position() Pinmemberray auchterlounie1:40 25 Oct '01  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 30 Oct 2001
Article Copyright 2001 by simulant
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid