[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Simple Schema
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@p...>
|
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
|