You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Jeffery B. Rancier" <je...@softechnics.com> on 2003/08/18 21:45:09 UTC
[Jeffery B. Rancier] newbie schema question
Hello All.
Can anyone tell me the proper syntax for grouping attributes and
elements in a complexType? (if that's even my problem) I have the
following complexType:
,----
| <xsd:complexType name="databaseType">
| <xsd:attribute name="datasource" type="xsd:string" use="required"/>
| <xsd:element name="table" type="tableType" maxOccurs="unbounded"/>
| </xsd:complexType>
`----
And I'm getting the following error:
,----
| [Error] sgdb.xsd:32:73: s4s-elt-invalid-content.1: The content of 'databaseType'
| is invalid. Element 'element' is invalid, misplaced, or occurs too often.
`----
I've tried placing the xsd:sequence grouping around, but that
complained about the attribute. Thanks in advance. Also, attached
are is the schema and the instance document. Any advice would be
greatly appreciated.