[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] content model
hi, I am having some problems with the software (XMLSpy 3 beta 3) I use to validate my XML files. I have a general XSD file, lets say 'general.xsd', wich includes (xsd:include) a different schema wich I use for all datatypes and enumerations, lets call that one 'datatypes.xsd'. This last one does not have any kind of complextype nor element declaration, just sympletypes and enumerations. The program that I use to validate complains about this and says there is no content model available for validation. After including the following in the 'datatypes.xsd' file: <xsd:complexType name="dummy" content="elementOnly"> <xsd:element name="dummy2" type="xsd:string"/> </xsd:complexType> it works fine. if I comment out the xsd:element declaration then I get the same error. Is the declaration of at least one element neccesary and obligatory in an XML schema file? even if this schema is not used to declare elements, but to declare datatypes and enumerations? If it is not neccesary to declare at least one element then I assume the program is checking for something it should not, and report the bug to the makers. TIA. David Valera
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|