get attribute from XML - Mailing list pgsql-sql

From Viktor Bojović
Subject get attribute from XML
Date
Msg-id AANLkTinAMcqZdCE0jvhekcH0oBMkiu-Qb4v8KJkQy5ox@mail.gmail.com
Whole thread Raw
Responses Re: get attribute from XML  (Markus Schatten <markus.schatten@foi.hr>)
List pgsql-sql
Hi,
while parsing this type of XML:
<entry version="21" modified="2009-07-07" dataset="S" created="2009-06-16">
<accession>Q91G55</accession>

i tried this query to get the modified attribute
select xpath('//entry/modified/text()',xml) from xml_sprot limit 10;
but it doesn't work. 

So im asking if anyone can help me with that.

Thanx in advance
--
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

pgsql-sql by date:

Previous
From: James Cloos
Date:
Subject: Re: counting related rows
Next
From: Markus Schatten
Date:
Subject: Re: get attribute from XML