Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Importing XMLSchema.xsd [Thread Next] Re: Beginner's Question - Schema Validation ProblemTo: "Xan Gregg" <Xan.Gregg@---.---> Date: 4/7/2004 10:28:00 AM Xan,
Thank you so much for replying. I took your advice and it worked. I owe =
you one !!!
Thanks to everyone for their help.
Ayman
----- Original Message -----
From: Xan Gregg
To: Ayman El-Geneidy ; xmlschema-dev@w...
Sent: Wednesday, April 07, 2004 2:12 PM
Subject: RE: Beginner's Question - Schema Validation Problem
TurboXML reports that the qos definition is invalid:
<xsd:element name="qos">
<xsd:complexType>
<xsd:element ref="performance" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="information" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="configuration" minOccurs="0" =
maxOccurs="1"/>
<xsd:element ref="security" minOccurs="0" maxOccurs="1"/>
<xsd:attribute ref="service_key" use="required"/>
</xsd:complexType>
</xsd:element>
Inside of complexType you need something like <xsd:sequence>, which =
should enclose the <xsd:element>'s, but not the <xsd:attribute>.
xan
-------------------------------------------------------------------------=
-----
From: xmlschema-dev-request@w... =
[mailto:xmlschema-dev-request@w...] On Behalf Of Ayman El-Geneidy
Sent: Wednesday, April 07, 2004 12:10 PM
To: xmlschema-dev@w...
Subject: Re: Beginner's Question - Schema Validation Problem
Noah,
Thank you very much for replying. I am sorry I have mislead you a =
little bit with the 'maxOccurs' attribute on the root element. I have =
found that error a while agao and corrected but I was copying the code =
snippet I sent from an old version.
Anyway, I have attached the files if you want to have a complete look =
at the schema.
Thank you very much for your help. It is highly appreciated.
Ayman
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
