Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Beginner's Question - Schema Validation Problem

From: "Xan Gregg" <Xan.Gregg@---.--->
To: "Ayman El-Geneidy" <aelgeneidy@---------.--->, <xmlschema-dev@--.--->
Date: 4/7/2004 10:12:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent