Fix namespace handling in xpath function

Peter Eisentraut <peter_e@gmx.net>

Commit: 6bbf75192801c0965cec28c8d93c4ed5f2e68b20
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2015-01-18T03:11:20Z
Releases: 9.4.1
Fix namespace handling in xpath function

Previously, the xml value resulting from an xpath query would not have
namespace declarations if the namespace declarations were attached to
an ancestor element in the input xml value.  That means the output value
was not correct XML.  Fix that by running the result value through
xmlCopyNode(), which produces the correct namespace declarations.

Author: Ali Akbar <the.apaan@gmail.com>

Files