How EXTRACTVALUE() Works in MariaDB

In MariaDB, EXTRACTVALUE() is a built-in string function that returns CDATA from an XML fragment.

The way it works is that it accepts two string arguments: a fragment of XML markup and an XPath expression (i.e. a locator). EXTRACTVALUE() then returns the CDATA (i.e. the text) of the first text node which is a child of the element or elements matching the XPath expression.

Continue reading