xpath_* namespace bug

From: CG <cgg007(at)yahoo(dot)com>
To: postgresql listserv <pgsql-general(at)postgresql(dot)org>
Subject: xpath_* namespace bug
Date: 2007-07-09 15:16:27
Message-ID: 506445.54807.qm@web37909.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

select xpath_string($xml$<?xml version="1.0" ?>
<f:foo xmlns:f="foo">
<f:bar>baz</f:bar>
</f:foo>
$xml$
,'//f:bar/text()');

This does not give me back "baz" as I was expecting it to... It seems like xpath is ignoring the namespace directives in the source XML document.


____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Zlatko Matic 2007-07-09 15:26:33 plpgsql equivalent to plperl $_SHARED and plpythonu global dictionary GD?
Previous Message Mike 2007-07-09 15:01:03 Performance Question - Table Row Size