From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: mostafa_bit0108@hotmail.com
Subject: BUG #16046: xpath returns CDATA tag along with the value in postgres 12
Date: Wed, 09 Oct 2019 09:22:05 +0000
Message-ID: <16046-a04d0611e7a0c03a@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 16046
Logged by: Mohammad Mostafa Kamal
Email address: mostafa_bit0108@hotmail.com
PostgreSQL version: 12.0
Operating system: Windows 7
Description:
While using xpath to extract text from a CDATA section of xml, it returns
CDATA tag along with the value.
Query: SELECT
unnest(xpath('//cname/aname/text()','<cname><aname><![CDATA[select
5]]></aname></cname>'::xml))
Output - pg11: select 5
Output - pg12: <![CDATA[select 5]]>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, mostafa_bit0108@hotmail.com
Subject: Re: BUG #16046: xpath returns CDATA tag along with the value in postgres 12
In-Reply-To: <16046-a04d0611e7a0c03a@postgresql.org>
References: <16046-a04d0611e7a0c03a@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox