BUG #7844: xpath missing entity decoding - bug or feature

Started by Dürr Softwareabout 13 years ago2 messagesbugs
Jump to latest
#1Dürr Software
info@fduerr.de

The following bug has been logged on the website:

Bug reference: 7844
Logged by: fduerr
Email address: info@fduerr.de
PostgreSQL version: 9.2.2
Operating system: Debian
Description:

Up until 9.1

select (xpath('/z/text()', ('<z>' || 'AT&amp;T' || '</z>')::xml))[1];

returned 'AT&T'
9.2 returns 'AT&amp;T'

Is it a bug or a feature?
Is there a function to decode xml-entities?
Thanks for your great work, kind regards

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#2Bruce Momjian
bruce@momjian.us
In reply to: Dürr Software (#1)
Re: BUG #7844: xpath missing entity decoding - bug or feature

On Fri, Feb 1, 2013 at 12:02:41PM +0000, info@fduerr.de wrote:

The following bug has been logged on the website:

Bug reference: 7844
Logged by: fduerr
Email address: info@fduerr.de
PostgreSQL version: 9.2.2
Operating system: Debian
Description:

Up until 9.1

select (xpath('/z/text()', ('<z>' || 'AT&amp;T' || '</z>')::xml))[1];

returned 'AT&T'
9.2 returns 'AT&amp;T'

Is it a bug or a feature?
Is there a function to decode xml-entities?

Does anyone have a comment on this?

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs