[Home] [By Thread] [By Date] [Recent Entries]

  • From: Andrew Welch <andrew.j.welch@g...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Fri, 24 Feb 2012 17:21:30 +0000

> <schema xmlns="http://www.w3.org/2001/XMLSchema">
>    <element name="Book">
>        <complexType>
>            <sequence>
>                <element name="Title" maxOccurs="unbounded" type="string" />
>            </sequence>
>        </complexType>
>    </element>
> </schema>

Or like this:

<xs:element name="Book" type="Book"/>
<xs:element name="Title" type="xs:string"/>

<xs:complexType name="Book">
    <xs:sequence>
        <xs:element ref="Title" maxOccurs="unbounded"/>
    </xs:sequence>
</xs:complexType>

Then you get a nice separation of elements and types.


-- 
Andrew Welch
http://andrewjwelch.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member