Skip site navigation (1) Skip section navigation (2)

Re: review: xml_is_well_formed

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mike Fowler <mike(at)mlfowler(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: review: xml_is_well_formed
Date: 2010-07-31 12:10:33
Message-ID: 1280578233.4895.0.camel@vanquo.pezone.net (view raw or flat)
Thread:
Lists: 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.


In response to

Responses

pgsql-hackers by date

Next:From: Robert HaasDate: 2010-07-31 12:42:44
Subject: Re: rbtree code breaks GIN's adherence to maintenance_work_mem
Previous:From: Stephen FrostDate: 2010-07-31 11:08:14
Subject: Re: ANALYZE versus expression indexes with nondefaultopckeytype

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group