Authored by: Thomas Darwin Viewed:
389 times so far
In this article, we discuss the XML functionality available in
MySQL, with an emphasis on new features coming online in MySQL 5.1 and
MySQL 6.0. We assume that you already have a working knowledge of XML,
and that you know what the terms “valid” and “well-formed” mean. We
also assume that you have some knowledge of XPath.
We cover the following topics:
Methods for outputting MySQL data in XML format, including the use of lib_mysqludf_xql, a third-party library that can be used for this task
Using the functions (new in MySQL 5.1) ExtractValue() and UpdateXML() for working with XML and XPath
Storing data from XML in a MySQL database using the LOAD XML statement (implemented in MySQL 6.0)
Some security considerations to keep in mind when using these techniques