Hey,
I came across this question, this is the 1st time I write a XML file, and I have no idea if my work is correct, or if thats how its supposed to be.......please give me your feedback:
Consider the following XML file that describes a pizza:
An order for a Pizza in a restaurant, stores the name, address, and the phone number of the customer. It stores also the description of one or more pizzas. A pizza has a size (small priced at $10, medium at $13 and large at $16), a crust type (thin or thick) and one or more toppings. The toping could be meat (beef or chicken), vegetable (red onion or cilantro).
Create an XML file that describes two different order for two different pizza.
this is what i did:
<?xml version = ”1.0” ?>
<Pizza>
<name> My Pizza </name>
<address> Kitchen </address>
<phoneNumber> 065432198 </phoneNumber>
<description>
<size> small </size>
<price> $10 </price>
<crust> thin </crust>
<topping>
<meat>beef </meat>
<meat>chicken</meat>
<vegetable> red onion </vegetable>
<vegetable> cilantro </vegetable>
</topping>
</description>
<name> His Pizza </name>
<address> Kitchen2 </address>
<phoneNumber> 0625678800 </phoneNumber>
<description>
<size> large </size>
<price> $16 </price>
<crust> thick </price>
<topping>
<meat>beef </meat>
<meat>chicken<meat>
<vegetable> red onion </vegetable>
<vegetable> cilantro </vegetable>
</topping>
</description>
</Pizza>
Thanks in advance....
itchap