OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Simple Schema

[ Lists Home | Date Index | Thread Index ]

Hi rajac,

> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
> <xs:element name="note">
>     <xs:complexType>
>       <xs:sequence>
>         <xs:element name="to" type="xs:string" minOccur="1" 
> maxOccur="5"/>
>         <xs:element name="heading" type="xs:string" minOccur="1"
> maxOccur="5"/>
>         <xs:element name="body" type="xs:string" minOccur="1" 
> maxOccur="5"/>
>       </xs:sequence>
>     </xs:complexType>
> </xs:element>
> </xs:schema>

  Your schema is invalid - please note difference between
  minOccur/minOccurs and maxOccur/maxOccurs ...

HTH

Martin

-- 
Martin Krumpolec <krumpo@pobox.sk>




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS