Re: How to parse XML in Postgres newer versions also

Поиск
Список
Период
Сортировка
От Andrus
Тема Re: How to parse XML in Postgres newer versions also
Дата
Msg-id B563F16528764890A998C435BF6FC93A@dell2
обсуждение исходный текст
Ответ на Re: How to parse XML in Postgres newer versions also  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
Hi!

>You can use XMLTABLE function
>select xmltable.*
>  from t,
>          lateral 
> xmltable(xmlnamespaces('urn:iso:std:iso:20022:tech:xsd:camt.053.001.02' as 
> ns),
> 
> '/ns:Document/ns:BkToCstmrStmt/ns:Stmt/ns:Ntry/.' passing t.x
>                                 columns tasusumma numeric path 'ns:Amt')

In 9.1.5 this throws error

ERROR: syntax error at or near "("
LINE 20: lateral xmltable(xmlnamespaces(
                                                                    ^
SQL state: 42601
Character: 582

Andrus.










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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: How to parse XML in Postgres newer versions also
Следующее
От: "Warner, Gary, Jr"
Дата:
Сообщение: Re: Facing issue in using special characters