Académique Documents
Professionnel Documents
Culture Documents
>
<BillingInformation>
<Name> Right Plastic Products </Name>
<BillingDate> 2002-09-15 </BillingDate>
<Address>
<Street> 158 Edward st. </Street>
<City> Brisbane </City>
<State> QLD </State>
<PostalCode> 4000 </PostalCode>
</Address>
</BillingInformation>
Listing 1 Example of an XML document instance.
type="xsd:string"/>
type="xsd:string"/>
type="xsd:string"/>
type="xsd:decimal/>
<xsd:complexType name="OrderType">
<xsd:sequence>
<xsd:element name="Product" type="PO:ProductType"
minOccurs=
"1"
name="State"
name="PostalCode"
name="Country"
type="xsd:string"/>
type="xsd:string"/>
type="xsd:string"/>
type="xsd:decimal/>
<xsd:complexType name="OrderType">
<xsd:sequence>
<xsd:element name="Product" type="PO:ProductType"
minOccurs= "1" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="Total">
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="ItemsSold" type="xsd:positiveInteger"/>
</xsd:complexType>
</xsd:schema>
Listing 13 Using the include element in the purchase order schema.