Skip site navigation (1) Skip section navigation (2)

8.3.3: uncovered Xml2 functionality

From: Francesco Biasiol <francesco(dot)biasiol(at)swg(dot)it>
To: pgsql-hackers(at)postgresql(dot)org
Subject: 8.3.3: uncovered Xml2 functionality
Date: 2008-06-13 15:09:35
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
in 8.3.3 Documentation / F.34.Xml2 the Deprecation notice claims:
"..the core server now covers XML syntax checking and XPath queries, 
which is what Xml2 does, and more."

I can't get boolean values out from function "xpath". I think there is a 
missing implementation of xpath syntax.

Try for example:
select xpath('false()',xml('<root/>'));
select xpath('1=1',xml('<root/>'));
select xpath('boolean(WHATEVERYOUWANT)',xml('<root/>'));

We have to keep in mind that xpath queries can return 4 value types: 
integer, string, boolean and nodeset.
The previous Xml2 implementation was way more comfortable (functions: 
xpath_number, xpath_string, xpath_bool and xpath_nodeset).

Thank you

pgsql-hackers by date

Next:From: Tom LaneDate: 2008-06-13 15:18:48
Subject: Re: keyword list/ecpg
Previous:From: Tom LaneDate: 2008-06-13 15:08:51
Subject: Re: keyword list/ecpg

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group