pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: franco.ricci@phys.uniroma1.it
To: pgsql-bugs@postgresql.org
Subject: BUG #6395: Invalid XPath expression
Date: Thu, 12 Jan 2012 15:40:13 +0000
Message-ID: <E1RlMlB-0001Fd-QC@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      6395
Logged by:          Franco Ricci
Email address:      franco.ricci@phys.uniroma1.it
PostgreSQL version: 9.1.2
Operating system:   FreeBSD 9
Description:        

Query at bottom returns:
"ERROR:  invalid XPath expression
DETAIL:  Invalid expression

********** Error **********

ERROR: invalid XPath expression
SQL state: XX000
Detail: Invalid expression"

The same query on PostgreSQL 9.x works fine!


------
SELECT
xpath('/llrp:RO_ACCESS_REPORT/llrp:TagReportData/llrp:*[contains(name(),\"EPC\")]/llrp:EPC/text()',


'<llrp:RO_ACCESS_REPORT
xmlns:llrp="http://www.llrp.org/ltk/schema/core/encoding/xml/1.0";
Version="1" MessageID="8">
  <llrp:TagReportData>
    <llrp:EPC_96>
      <llrp:EPC>04954524D0004980B0DF0001</llrp:EPC>
    </llrp:EPC_96>
    <llrp:ROSpecID>
      <llrp:ROSpecID>100</llrp:ROSpecID>
    </llrp:ROSpecID>
  </llrp:TagReportData>
</llrp:RO_ACCESS_REPORT>'::xml

, ARRAY[ARRAY['llrp',
'http://www.llrp.org/ltk/schema/core/encoding/xml/1.0';]])
----------





view thread (3+ messages)  latest in thread

Message-ID: <E1RlMlB-0001Fd-QC@wrigleys.postgresql.org>
Permalink:  ../E1RlMlB-0001Fd-QC@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1RlMlB-0001Fd-QC@wrigleys.postgresql.org

 · 

reply

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: franco.ricci@phys.uniroma1.it
  Subject: Re: BUG #6395: Invalid XPath expression
  In-Reply-To: <E1RlMlB-0001Fd-QC@wrigleys.postgresql.org>
  References: <E1RlMlB-0001Fd-QC@wrigleys.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