sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
-00Eric Clapton's Avatar

xml transformation question


Question posted by: -00Eric Clapton (Guest) on November 12th, 2005 05:08 AM
How can I use the XML and XSLT to transfer data from CSV to SQL server?
Thanks.


5 Answers Posted
Martin Honnen's Avatar
Guest - n/a Posts
#2: Re: xml transformation question



-00Eric Clapton wrote:
[color=blue]
> How can I use the XML and XSLT to transfer data from CSV to SQL server?[/color]

XSLT transforms an input tree into a result tree which is then
serialized as XML or as HTML or as text. The input tree is usually built
by parsing some input XML.
With that standard approach I don't see XSLT helpful to get data in a
CSV format into an SQL data base server, there are certainly ways to
import that CSV data into a data base without using XSLT.
Ask in a data base group how to import the CSV data into your data base.


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Pascal Schmitt's Avatar
Guest - n/a Posts
#3: Re: xml transformation question

Hello!
[color=blue]
> -00Eric Clapton wrote:
>[color=green]
>> How can I use the XML and XSLT to transfer data from CSV to SQL server?[/color]
>
> XSLT transforms an input tree into a result tree which is then
> serialized as XML or as HTML or as text. The input tree is usually built
> by parsing some input XML.[/color]

But it is possible to write custom XmlReader-s that simulate XML for
CSV-Files.
[color=blue]
> With that standard approach I don't see XSLT helpful to get data in a
> CSV format into an SQL data base server, there are certainly ways to
> import that CSV data into a data base without using XSLT.[/color]

This should be possible with Microsoft Access...



--
Pascal Schmitt
Martin Honnen's Avatar
Guest - n/a Posts
#4: Re: xml transformation question



Pascal Schmitt wrote:
[color=blue][color=green]
>> XSLT transforms an input tree into a result tree which is then
>> serialized as XML or as HTML or as text. The input tree is usually
>> built by parsing some input XML.[/color]
>
> But it is possible to write custom XmlReader-s that simulate XML for
> CSV-Files.[/color]

That is possible but I am not sure why anyone would want to do that or
need that to get a CSV imported into a relational data base.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
-00Eric Clapton's Avatar
Guest - n/a Posts
#5: Re: xml transformation question

I am just curious. What are the uses of XML and XSLT?


"Martin Honnen" <mahotrash@yahoo.de> wrote in message
news:OtUgP82yFHA.3860@TK2MSFTNGP09.phx.gbl...[color=blue]
>
>
> Pascal Schmitt wrote:
>[color=green][color=darkred]
>>> XSLT transforms an input tree into a result tree which is then
>>> serialized as XML or as HTML or as text. The input tree is usually built
>>> by parsing some input XML.[/color]
>>
>> But it is possible to write custom XmlReader-s that simulate XML for
>> CSV-Files.[/color]
>
> That is possible but I am not sure why anyone would want to do that or
> need that to get a CSV imported into a relational data base.
>
> --
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/[/color]


Pascal Schmitt's Avatar
Guest - n/a Posts
#6: Re: xml transformation question

-00Eric Clapton wrote:[color=blue]
> I am just curious. What are the uses of XML and XSLT?[/color]

Well... XML is just a "language" to exchange Tree-like data structures.
As XML is a W3C-"standard", there exist many parsers for nearly every
platform wich makes the use easier - you can concentrate on using the
data instead of parsing some custom file format.

XSLT is used to transform one XML tree into another. Thus you can export
for example WordML from Microsoft Word 2003 and transform it into any
XML-based format you want (DocBook, XHTML, OpenDocument).


--
Pascal Schmitt
 
Not the answer you were looking for? Post your question . . .
196,828 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,828 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors