Re: PostgreSQL and SOAP, suggestions?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Postgres-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PostgreSQL and SOAP, suggestions?
Date: 2003-04-02 21:40:57
Message-ID: Pine.LNX.4.44.0304021743160.3656-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2003-04-02 21:42:55 Re: PostgreSQL and SOAP, suggestions?
Previous Message Frank Wiles 2003-04-02 21:32:55 TODO list problem or am I way off base?