Re: Postgresql 8.4, XPath and name() function

Поиск
Список
Период
Сортировка
От Tim Landscheidt
Тема Re: Postgresql 8.4, XPath and name() function
Дата
Msg-id m3zkxvgy88.fsf@passepartout.tim-landscheidt.de
обсуждение исходный текст
Ответ на Postgresql 8.4, XPath and name() function  (ced45 <cedric.duprez@ifn.fr>)
Ответы Re: Postgresql 8.4, XPath and name() function  (Craig Ringer <craig@postnewspapers.com.au>)
Список pgsql-general
ced45 <cedric.duprez@ifn.fr> wrote:

> I have trouble using XPath name() function in a XML field.
> For example, when I execute the following query :

> SELECT XPATH('name(/*)', XMLPARSE(DOCUMENT '<unit>value</unit>'))

> I would like to get "unit", but I just get an empty array ({}).
> How can I get "unit" ?

AFAIK, this is not related to PostgreSQL, but inherent to
XPath in that it returns elements from the document that
fulfill the XPath expression *unchanged*.

  So you will probably have to tackle your problem from an-
other angle.

Tim

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Why can't I see the definition of my relations
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Testing 9.0beta3 and pg_upgrade