473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

xml transformation question

How can I use the XML and XSLT to transfer data from CSV to SQL server?
Thanks.
Nov 12 '05 #1
5 1311


-00Eric Clapton wrote:
How can I use the XML and XSLT to transfer data from CSV to SQL server?


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/
Nov 12 '05 #2
Hello!
-00Eric Clapton wrote:
How can I use the XML and XSLT to transfer data from CSV to SQL server?
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.


But it is possible to write custom XmlReader-s that simulate XML for
CSV-Files.
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.


This should be possible with Microsoft Access...

--
Pascal Schmitt
Nov 12 '05 #3


Pascal Schmitt wrote:
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.


But it is possible to write custom XmlReader-s that simulate XML for
CSV-Files.


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/
Nov 12 '05 #4
I am just curious. What are the uses of XML and XSLT?
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:Ot**************@TK2MSFTNGP09.phx.gbl...


Pascal Schmitt wrote:
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.


But it is possible to write custom XmlReader-s that simulate XML for
CSV-Files.


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/

Nov 12 '05 #5
-00Eric Clapton wrote:
I am just curious. What are the uses of XML and XSLT?


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
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sergio del Amo | last post by:
Hi, I use the xslt functions provided by php. I am running in my computer the package xampp(www.apachefriends.org) which includes php/apache/mysql .. In this package the php includes the sablotron...
4
by: Kevin Dean | last post by:
I'm trying to create an XSL transformation that will strip out development-specific attributes from deployment descriptors and other XML files. I have already successfully done so with web.xml but...
7
by: CK | last post by:
Hello, I have the 60 MB XML string and I am coding a program in Visual Basic to run a XSL transformation on it. Currently, I'm using the Microsoft standard MSXML 2.0 to create a DOM document, load...
2
by: TomekR | last post by:
Hello ! I was developing xslt sheet lately and - experimenting - I made mistake resulting in that, the effect of the transformation is not well-formed xml document. I made these tests using...
6
by: dave | last post by:
I really have 2 questions regarding the following xml snippet. The xml is a directory representation. <?xml version="1.0" standalone="yes"?> <FileSystem> <Row> <ID>1</ID> <Name>Root</Name>...
1
by: daniele74 | last post by:
Hy, I want ask you this question. I have two schema file schema1.xsd and schema2.xsd. then I have a stylesheet transformation style2.xsl that show in a browser an xml file that has schema2.xml as...
2
by: HendrikLeder | last post by:
Hello everybody :-) Next year I`ll write my diploma in computer science for business (It`s a degree in Germany) and I`ve some questions about the topic. The diploma will handle about refactoring...
1
by: newbie | last post by:
This is probably a too general question, thanks for any feedback in advance. I am trying to write a class to do transformation on a data set. I want to make it easy to maintain in the long-run...
14
by: Thomas Bauer | last post by:
Hello, I search a example like that. (1,0,0,1,4,5 ) -- moving (1,0,0,1,0,0 ) -- normal matrix (-1,0,0,1,0,0 ) -- Mirror Y-Axis (0,-1,0,1,0,0 ) -- Mirror X-Axis I caluculate all in mm.
3
by: Stefano Sabatini | last post by:
Hi all, for a transformation method I mean a method which will transform an object changing its internal state. Do you think it is a good idea to return the pointer to the modified object like...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.