Re: BUG #3782: table_to_xmlschema and xsd:simpleType

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: "Dragos Ionita" <dragos(at)beopen(dot)ro>
Subject: Re: BUG #3782: table_to_xmlschema and xsd:simpleType
Date: 2007-11-28 10:53:38
Message-ID: 200711281153.39234.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Am Dienstag, 27. November 2007 schrieb Dragos Ionita:
> I'm having a problem with table_to_xmlschema, for VARCHAR fields the
> function returns:
>
> <xsd:simpleType name="VARCHAR">
> </xsd:simpleType>
>
> And parsers don't seem to like this:
>
> Invalid XML schema: 'Further elements required under element
> <xsd:simpleType>.'
>
> The simpleType should have a child element. Is this a bug or am I missing
> something?

Oh yes, I didn't consider the XML Schema specification well enough. Please
try the attached patch.

Do you know of an XML Schema checker that we could use to check this?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

Attachment Content-Type Size
xmlschema-restriction-fix.patch text/x-diff 1.2 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2007-11-28 13:51:11 Re: BUG #3784: pg_ctl fails to start server when called with -c parameters
Previous Message wengxc 2007-11-28 05:43:34 BUG #3786: report error:"ERROR: invalid byte sequence for encoding "UTF8""