select xpath ...

Поиск
Список
Период
Сортировка
От boris
Тема select xpath ...
Дата
Msg-id j52me3$ehq$1@speranza.aioe.org
обсуждение исходный текст
Ответы Re: select xpath ...  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-sql
hi all,
I've inserted xml file :

<?xml version="1.0"?>
<document xmlns:s1="urn:myorg/s1" xmlns="urn:myorg" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><id num="111-222-333-4444"/><title>zzzzzz</title>
......................


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.





В списке pgsql-sql по дате отправления:

Предыдущее
От: Tim Landscheidt
Дата:
Сообщение: Re: Passing function parameters to regexp_replace
Следующее
От: nicoletta maia
Дата:
Сообщение: Re: Window function sort order help