|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Schema question
Hi Nada, Let me know if this solution good for you. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="demo"> <xs:complexType> <xs:choice maxOccurs="5"> <xs:element name="a" type="x.type"/> <xs:element name="b" type="x.type"/> <xs:element name="c" type="x.type"/> <xs:element name="d" type="x.type"/> <xs:element name="y" type="y.type"/> </xs:choice> </xs:complexType> </xs:element> <xs:complexType name="x.type"/> <xs:complexType name="y.type"> <xs:complexContent> <xs:extension base="x.type"/> </xs:complexContent> </xs:complexType> </xs:schema> ----------------- <demo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="D:\SemanticProgrammer\XML-chat\demo.xsd"> <a/> <b/> <d/> <y/> <c/> </demo> Good luck, Vladimir
|
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
|
|||||||||

Cart








