Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1C783B5DC2D for ; Sat, 17 Sep 2011 15:00:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 77411-04 for ; Sat, 17 Sep 2011 17:59:57 +0000 (UTC) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 15EC5B5DC24 for ; Sat, 17 Sep 2011 14:59:57 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id p8HHxuBc092307 for ; Sat, 17 Sep 2011 14:59:56 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id p8HHkmwY071445 for pgsql-sql@postgresql.org; Sat, 17 Sep 2011 14:46:48 -0300 (ADT) (envelope-from news) From: boris X-Newsgroups: pgsql.sql Subject: select xpath ... Date: Sat, 17 Sep 2011 13:48:03 -0400 Organization: Aioe.org NNTP Server Lines: 34 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20110818 Icedove/3.0.11 X-Notice: Filtered by postfilter v. 0.8.2 To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.296 tagged_above=-5 required=5 tests=BAYES_50=0.8, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/49 X-Sequence-Number: 35849 hi all, I've inserted xml file : zzzzzz ...................... to a table: CREATE TABLE "temp".tempxml ( record xml ) I can get it using: select * from temp.tempxml but, I can't get any values using xpath. ex: select (xpath('/document/title/text()', record ))[1] from temp.tempxml am I doing it right? thanks.