Menu
support@nursinghomework.org
+1 714-215-3097

(Solved) : Write Xml Schema Following Xml File Satisfying Following Requirements Orderdate Shipdate E Q35591350

Write an XML Schema for the following XML file satisfying thefollowing

requirements: a)orderDate

and

shipDate

elements should be of

xsd:date

type; b)

SKU

attribute should be restricted to a sequence of 6 alphanumericalsymbols; c)

country

should be of xsd:

NMTOKEN

type” d) make reuse of the element types

shippingInfo

and

billingInfo

. Validate the xml file against your XML Schema using

the

online validator:

http://tools.decisionsoft.com/schemaValidate/.

<?xml version=”1.0″ encoding=”UTF-8″?>

<order orderDate=”2016-03-08″>

<shippingInfo country=”Canada”>

<name>Tim Jones</name>

<street>123 Maple Street</street>

<city>Toronto</city>

<state>ON</state>

<zip>M5G2C4</zip>

</shippingInfo>

<billingInfo country=”US”>

<name>Christo Dichev</name>

<street>18 Amesbury Drive</street>

<city>XML Town</city>

<state>NC</state>

<zip>27100</zip>

</billingInfo >

<note>Ship it ASAP. My lawn badly needscutting</note>

<items>

<item SKU=”LMO256″>

<itemName>Lawnmower</itemName>

<quantity>1</quantity>

<price>152.95</price>

<note>Confirm this is electric</note>

</item>

<item SKU=”ACK728″>

<itemName>Alarm Clock</itemName>

<quantity>1</quantity>

<price>40.99</price>

<shipDate>2016-03-15</shipDate>

</item>

</items>

</order>

Leave a Reply

Your email address will not be published. Required fields are marked *