How would you structure this schema element?

D

D. Alvarado

I have a schema element reprsenting an order's product. I want to
include information within the product to state that the product was
delivered, or it was not delivered for the following reasons (there
could be more than one). Does anyone have a suggestion or example for
how I might encapsulate that information within my schema?

Here's the code for the product without the delivery status,

<xs:element name="PRODUCT" minOccurs="1"
maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="id" type="xs:integer"
/>
<xs:all>
<xs:element name="QUANTITY"
type="xs:integer" />
<xs:element name="TITLE"
type="xs:string" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
</xs:element>

Thanks, - Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,538
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top