read this short tutorial and everything will be clear http://www.xml.com/pub/a/2000/11/29/schemas/part1.html
> Hi, > > I have questions about the syntax of schema: > > I want to write a schema for the purchaseOrder example with conditions: (1) > shipTo, comment, items can appear in any order under purchaseOrder; (2) > name, street, city, state, zip can appear in any order under shipTo; (3) > itemQuantity, item can appear any order under items; (4) productName, > quantity, USPrice can appear in any order under item; (5) there can be more > than one item under items; (6) the price for one Lawnmower is 148.95 and > the price for one Baby Monitor is 39.98. > > The problems I have are (1) I don't know what to use to enforce the order > described above; (2) I don't know a way to tie the price with the product. > > <purchaseOrder> > <shipTo> > <name>Alice Smith</name> > <street>123 Maple Street</street> > <city>Mill Valley</city> > <state>CA</state> > <zip>90952</zip> > </shipTo> > <comment>Hurry, my lawn is going wild!</comment> > <items> > <itemQuantity>2</itemQuantity> > <item> > <productName>Lawnmower</productName> > <quantity>1</quantity> > <USPrice>148.95</USPrice> > </item> > <item> > <productName>Baby Monitor</productName> > <quantity>1</quantity> > <USPrice>39.98</USPrice> > </item> > </items> > </purchaseOrder> > > > Thank you very much. > Ha > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
