MySQL Forums
Forum List  »  Connector/Node.js

Re: Import XML to MySql Table
Posted by: Roland Bouman
Date: March 14, 2006 05:48PM

Well, the question is, do need to insert it structured, or as-is?

If as-is (as a xml fragment) it's not that hard:

insert into t_table(xml) values load_file('path/to/my/file')

file must be on the server.
If structured, well, I'm afraid it be quite hard - at least to find a general solution (check out 5.1 - http://dev.mysql.com/doc/refman/5.1/en/xml-functions.html)

Right now, I think xslt would be the most straigtforward way.

Options: ReplyQuote


Subject
Written By
Posted
March 14, 2006 07:08AM
Re: Import XML to MySql Table
March 14, 2006 05:48PM


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.