Re: PostgreSQL and SOAP, suggestions?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: PostgreSQL and SOAP, suggestions?
Дата
Msg-id Pine.LNX.4.44.0304021743160.3656-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: PostgreSQL and SOAP, suggestions?  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan writes:

> If the intention is to use field names as (local) tag names, how will you
> handle the case where the field name isn't a valid XML name? Of course, one
> could do some sort of mapping (replace illegal chars with "_", for example)
> but then you can't be 100% certain that you haven't generated a collision,
> I should think.

The SQL/XML draft specifies an reversible escape mechanism.  Basically,
when mapping an SQL identifier to an XML name you replace problematic
characters with an escape sequence based on the Unicode code point, like
_x2A3B_.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Frank Wiles
Дата:
Сообщение: TODO list problem or am I way off base?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: PostgreSQL and SOAP, suggestions?