Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 56D8818E38D9 for ; Thu, 12 Jan 2012 11:40:33 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RlMlQ-0004Yd-37 for pgsql-bugs@postgresql.org; Thu, 12 Jan 2012 15:40:33 +0000 Received: from [204.145.120.229] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RlMlC-0005mc-8k for pgsql-bugs@postgresql.org; Thu, 12 Jan 2012 15:40:15 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RlMlB-0001Fd-QC for pgsql-bugs@postgresql.org; Thu, 12 Jan 2012 15:40:13 +0000 Date: Thu, 12 Jan 2012 15:40:13 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6395: Invalid XPath expression To: pgsql-bugs@postgresql.org From: franco.ricci@phys.uniroma1.it X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/102 X-Sequence-Number: 32169 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(),\"E= PC\")]/llrp:EPC/text()', ' 04954524D0004980B0DF0001 100 '::xml , ARRAY[ARRAY['llrp', 'http://www.llrp.org/ltk/schema/core/encoding/xml/1.0']]) ----------