Parsing XML from a stored procedure
am 21.09.2005 22:48:01 von Horacio Escalada
Hi there,
I would like to know if I can pass XML data to a MYSQL stored procedure
and then process the XML file to insert its values into a table.
Something like the "SELECT ... FROM OPENXML " from TSQL
Thank you
Re: Parsing XML from a stored procedure
am 22.09.2005 04:42:01 von Bill Karwin
Horacio Escalada wrote:
> Hi there,
> I would like to know if I can pass XML data to a MYSQL stored procedure
> and then process the XML file to insert its values into a table.
> Something like the "SELECT ... FROM OPENXML " from TSQL
No, there is no such feature. It is a nontrivial problem to map XML
elements into a relational database schema.
Here's an article on using a product called PremiumSoft Navicat to
import XML data into MySQL:
http://www.phpbuilder.com/columns/kenlin20031229.php3
Here's an article about using Perl to load XML data into MySQL:
http://www.kitebird.com/articles/mysql-xml.html#TOC_5
Regards,
Bill K.