xml2 still essential for us

From: "J(dot) Greg Davidson" <greg(at)ngender(dot)net>
To: PostgreSQL <pgsql-hackers(at)postgresql(dot)org>
Cc: Lynn Dobbs <lynn(at)creditlink(dot)com>
Subject: xml2 still essential for us
Date: 2010-01-13 00:33:35
Message-ID: 1263342815.5735.62.camel@shevek.puuhonua.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Reporting as requested, there are two things our projects
continue to need xml2 for, and a third which we conceptually
need xml2 for:

(1) We need some way to do xslt processing.

(2) We need the equivalent of xml_is_well_formed(text), e.g.
a documented way to call XMLPARSE speculatively and get a
NULL or be able to efficiently catch an error, etc.

(3) My third point is a bit subtle. The xml2 package is
clearly just a set of operations on text. The PostgreSQL
xml datatype might RIGHT NOW be internally represented as
text, but I don't think we're supposed to think of it that
way.

The official XML datatype is free to evolve into one of
the more sophisticated XML storage and processing formats,
at the expense of a bit more overhead at XMLPARSE time.

The advantage of the xml2 package is that it says upfront:
this is just a way to treat text as xml. It is useful
precisely when one is doing a mixture of text and xml
processing steps on data, and perhaps also when generating
short-lived xml values.

(4) In conclusion, I hope that PostgreSQL will keep xml2
or something similar even when the XSLT and speculative parsing
issues have been addressed.

Thanks for your consideration,

_Greg

J. Greg Davidson

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jaime Casanova 2010-01-13 01:10:38 Re: patch to implement ECPG side tracing / tracking ...
Previous Message Robert Haas 2010-01-13 00:06:59 Re: Feature patch 1 for plperl [PATCH]