MySQL Forums
Forum List  »  Connector/Node.js

Help requiring loading XML data into MySQL v5.0
Posted by: Vijit Shah
Date: November 14, 2008 11:14AM

Hi,
I am a newbie and I am using v5.0 to load data from XML file.
My XML file is
-------------------------------------------------------------------------------
<movies>
<movie>
<id>1</id>
<imdb_url>http://www.imdb.com/title/tt0389605/</imdb_url>;
<title>Dinosaur Planet</title>
<cast>
<actor>Christian Slater</actor>
<actor>Scott Sampson</actor>
</cast>
</movie>
</movies>
-------------------------------------------------------------------

I am using the following command to load data into MySQL

LOAD DATA INFILE 'path.xml'
INTO TABLE `xyz`
FIELDS TERMINATED BY '\n'
LINES TERMINATED BY '</movie>' ;

I am getting Syntax error in mySQL

Please help me in solving this error or any method by which I can load data from XML file.

Thanks
Vijit

Options: ReplyQuote


Subject
Written By
Posted
Help requiring loading XML data into MySQL v5.0
November 14, 2008 11:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.