XPath fixes:
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 21 May 2007 17:10:29 +0000 (17:10 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 21 May 2007 17:10:29 +0000 (17:10 +0000)
commit3963574d13383b4f377ab054e47e4af20cb75e7d
treec938be981d3511412f46d640f3f6226796cb8589
parent0c644d2c3d50a6a9f8b3821d1fe6b0f0753804b1
XPath fixes:
 - Function renamed to "xpath".
 - Function is now strict, per discussion.
 - Return empty array in case when XPath expression detects nothing
   (previously, NULL was returned in such case), per discussion.
 - (bugfix) Work with fragments with prologue: select xpath('/a',
   '<?xml version="1.0"?><a /><b />'); // now XML datum is always wrapped
   with dummy <x>...</x>, XML prologue simply goes away (if any).
 - Some cleanup.

Nikolay Samokhvalov

Some code cleanup and documentation work by myself.
doc/src/sgml/datatype.sgml
doc/src/sgml/func.sgml
src/backend/utils/adt/xml.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/include/utils/xml.h
src/test/regress/expected/xml.out
src/test/regress/expected/xml_1.out
src/test/regress/sql/xml.sql