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/