[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] csv data to xml


Subject: [xsl] csv data to xml
From: henry human <henry_human@xxxxxxxx>
Date: Tue, 25 Jun 2013 13:46:37 +0100 (BST)

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


Current Thread
Keywords
xml