get attribute from XML

Поиск
Список
Период
Сортировка
От Viktor Bojović
Тема get attribute from XML
Дата
Msg-id AANLkTinAMcqZdCE0jvhekcH0oBMkiu-Qb4v8KJkQy5ox@mail.gmail.com
обсуждение исходный текст
Ответы Re: get attribute from XML  (Markus Schatten <markus.schatten@foi.hr>)
Список 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 по дате отправления:

Предыдущее
От: James Cloos
Дата:
Сообщение: Re: counting related rows
Следующее
От: Markus Schatten
Дата:
Сообщение: Re: get attribute from XML