[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: csv data to xml

Subject: Re: csv data to xml
From: henry human <henry_human@xxxxxxxx>
Date: Fri, 28 Jun 2013 04:34:13 +0100 (BST)
Re:  csv data to xml
Could not run your sample Crane-ParseCSV without a howto-use
brg
henry

-----
Urspr|ngliche Message -----
Von: G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx>
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
CC: 
Gesendet: 19:47 Donnerstag, 27.Juni
2013
Betreff: Re:  csv data to xml

(RETRY from June 25)

I have
published such a library to convert CSV to XML and it is 
published in my list
of free resources:
<http://www.CraneSoftwrights.com/resources/#csv>http://www.CraneSoftwrights.c
om/resources/#csv

It can be used standalone or imported into another
stylesheet.

I hope this helps.

. . . . . . . . . . Ken

On Jun 25, 2013 8:46
AM, "henry human" 
<<mailto:henry_human@xxxxxxxx>henry_human@xxxxxxxx> wrote:
Hi guys
Need your help:

How get this csv data to xml using xslt:


a) CSV
USA,AA,Comp. 1,U,012345,L987
USA,BB,Comp.2,Z,034567888888,F098
USA,CC,Comp
3,M,034847474747,F098
//more csv rows.



b) xml (result)

<?xml version="1.0"
encoding="UTF-8"?>
<MemberList">
  <Segment>
  <Country>USA</Country>
 
<Draft>AA</Draft>
  <Description>Comp.1 </Description>
 
<ChangeMode>U</ChangeMode>
  <Code>012345</Code>
  <comNumber>L987</comNumber>
  </Segment>

    //here more segments representing rows in csv

</MemberList>
Thanks
Henry


--
Contact us for world-wide XML consulting and instructor-led
training |
Free 5-hour lecture:
http://www.cranesoftwrights.com/links/udemy.htm|
Crane Softwrights Ltd.       
    http://www.cranesoftwrights.com/s/|
G. Ken Holman                 
mailto:gkholman@xxxxxxxxxxxxxxxxxxxx |
Google+ profile:
https://plus.google.com/116832879756988317389/about|
Legal business
disclaimers:    http://www.cranesoftwrights.com/legal|

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.