BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


XSLT
Cross-Browser display of XML/XSL
Cross Reference Lookup in XSLT using XML file as Xref table
Recursion reminds me of Recursion (9 XSLT Recursion examples)
XSLT Sort - output entire xml file with new sort order
Variable Variables
Cross Reference Lookup in XSLT using embedded XML
XTrans 1.0
XML Explorer 2.5
Create an N-Column Table from XML node-set
XSLT Select Option Example
XSLT Date filtering, sorting, comparing, and evaluating
XSLT Template for HTML INPUT Tag
XSLT Template for HTML IMG Tag
XSLT Search and Replace Template
Word wrap and text replace templates for XSLT
nxslt 1.3
Visual XPath
xframe - xsddoc
-xsl-fo-->-pdf--making-an-e-book/documentation.aspx>BIBLE PDF from (xml & xsl)-> xsl-fo -> pdf ; Making an E-book/documentation
Sum(round(.))


 
 

<< XQuery.NET and XML >>


By John Workman
First Posted 05/11/2003
Times viewed 1238

XML to CSV using XSLT


This post contains attachments
v20030511164753.zip 

Summary This JScript loads a XML document and XSLT Document. It then transforms the XML document to a CSV file using XSLT.

One thing that the XSLT does is to replace all double quotes with single quotes. The thought behind this is that the csv file will be loaded into another system. The fields are comma delimited, and each value is surrounded by double quotes. If you have double quotes within a value, it will fail upon loading. Here's the JScript:

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (1 votes, average 5)

Your vote :  

<< XQuery.NET and XML >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML