From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: XML export |
Date: | 2007-02-10 22:25:43 |
Message-ID: | 200702102325.43998.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Andrew Dunstan wrote:
> How do you treat columns whose names are not legal XML names?
There are escape mechanisms in place. You can verify yourself how they
work using
select xmlelement(name "something unusual");
> I'm glad to see you treat NULL as an attribute - that's definitely
> the right way I think.
The standard provides for the option of representing them the way I
showed or omitting them.
> Have you thought about possibly using a standard encoding (e.g.
> base64) for bytea? Not sure what the standard says on encoding.
It says to use base64 or hex. You can also verify that yourself using
select xmlelement(name foo, bytea 'something');
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From | Date | Subject | |
---|---|---|---|
Next Message | Jeremy Drake | 2007-02-11 00:08:33 | Re: patch adding new regexp functions |
Previous Message | Tom Lane | 2007-02-10 22:20:11 | Re: Foreign keys for non-default datatypes, redux |