XPath: Support for version 2.0 or 3.1

For reference, the original request: JSON to Table - #8 by ipazin