apache/pig — pull request #14 by cavanaug (2014-12-11 00:26:11+00:00)
Title: (branch-0.14) XPath allow to ignore namespace and add XPathAll support

Folks,

#1
We have added a parameter to XPath to have it ignore any namespace directives in the xpath command. This is very helpful when you are cut/pasting xpaths from tools that automatically include the namespace information. The existing implementation can not handle namespaces so it fails to match, and manually removing the namespace information is tedious and errorprone.

#2
We have added an XPathAll UDF which will return all of the xpath matches as an array. This can be used to extract multiple items and flatten them for further processing. We tried to mimic the existing *All pattern from other UDF's.

--
John Cavanaugh