Re: review: xml_is_well_formed - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: review: xml_is_well_formed
Date
Msg-id 1280578233.4895.0.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: review: xml_is_well_formed  (Mike Fowler <mike@mlfowler.com>)
Responses Re: review: xml_is_well_formed
List pgsql-hackers
On fre, 2010-07-30 at 12:50 +0100, Mike Fowler wrote:
> > * xml_is_well_formed returns true for simple text
> >
> > postgres=# SELECT xml_is_well_formed('ssss');
> >   xml_is_well_formed
> > --------------------
> >   t
> > (1 row)
> >
> > it is probably wrong result - is it ok??
> >    
> 
> Yes this is OK, pure text is valid XML content.

Are you speaking of XML content fragments that SQL/XML defines?

Well-formedness should probably only allow XML documents.



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: ANALYZE versus expression indexes with nondefault opckeytype
Next
From: Robert Haas
Date:
Subject: Re: rbtree code breaks GIN's adherence to maintenance_work_mem