August 2, 2011 at 12:17 pm
Hi All,
In my current project we have requirement where i have to convert CSV file to XML file format based on XSD file using SSIS & T-sql .
Could you please let me know the best way of converting CSV to XML file format...
Thanks for your help
Regards
Krsihna
August 2, 2011 at 1:20 pm
Have you considered using XSLT to transform the file? If you already have an XSD then mapping the input columns to that should be trivial with a decent XML Development IDE. Check out XML Spy.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
August 2, 2011 at 2:35 pm
Thanks for your suggestion ,however our team is looking for something Open source.let me know if we have something like XML Spy which is open source.
I have the XSD file for my XML file ,Can we convert using some .net plug in ?
August 2, 2011 at 4:03 pm
krish.sett (8/2/2011)
Thanks for your suggestion ,however our team is looking for something Open source.let me know if we have something like XML Spy which is open source.I have the XSD file for my XML file ,Can we convert using some .net plug in ?
XML Spy is just a development tool. SSIS, which you said you were open to using, will do the actual conversion of your CSV file to an XML file using the XSLT file you designed in XML Spy and the XSD you were given. Have a look at the XML Task in SSIS. You would be looking at a config similar to this:
If XML Spy is too pricey search for "free xslt designer" or "open source xml ide" and see what turns up.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
August 3, 2011 at 8:29 am
Thanks for the info.....so basically i need to create a XSLT file for my XML file so that i can use XML Task Editor for the conversion.
This is really awesome...thanks for the suggestion and will work on creating XSLT file (Its new stuff to me) and will let you once i am done.
Once again thank u very much
November 19, 2013 at 12:35 pm
krish.sett (8/3/2011)
Thanks for the info.....so basically i need to create a XSLT file for my XML file so that i can use XML Task Editor for the conversion.This is really awesome...thanks for the suggestion and will work on creating XSLT file (Its new stuff to me) and will let you once i am done.
Once again thank u very much
Writing XML Transforms (what you will hear XSLT files referred to) can be a little tricky. A really good site for getting the basics down is the and their XPath Tutorial.
-- Itzik Ben-Gan 2001
November 19, 2013 at 3:05 pm
miraeg66 (11/13/2013)
thanks alot for the info
Heh... foreign language or not, I hate SPAM! Reported!
--Jeff Moden
Change is inevitable... Change for the better is not.
October 22, 2015 at 12:26 am
Hey Krishna,
Were you able to achieve this? If yes
..
can you guide me how?
I believe XSLT is to transform XML from one format to another not generate from other file formats.
Thanks,
Arun
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply