Re: Issue: Deprecation of the XML2 module 'xml_is_well_formed' function

Mike Fowler <mike@mlfowler.com>

From: Mike Fowler <mike@mlfowler.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Robert Haas <robertmhaas@gmail.com>, Mike Rylander <mrylander@gmail.com>, Mike Berrow <mberrow@gmail.com>, pgsql-hackers@postgresql.org
Date: 2010-07-03T08:26:12Z
Lists: pgsql-hackers
Quoting Peter Eisentraut <peter_e@gmx.net>:

> On fre, 2010-07-02 at 14:07 +0100, Mike Fowler wrote:
>> So if IS CONTENT were
>> to be implemented, to determine that you have something that is
>> malformed
>
> But that's not what IS CONTENT does.  "Content" still needs to be
> well-formed.
>

What I was hoping to achieve was to determine that something wasn't a  
document and wasn't content, however as you pointed out on the bugs  
thread the value must be XML. My mistake was not checking that I had  
followed the definitions all the way back to the root. What I will do  
instead is implement the xml_is_well_formed function and get a patch  
out in the next day or two.

Thank you Robert and Peter for tolerating my stumbles through the standard.

Regards,

-- 
Mike Fowler
Registered Linux user: 379787