Data Mapping Instructions

 

An XML Schema describes the structure of an XML document. This is important in order to achieve a well-formed and valid XML document. For this assignment, you will create an XML mapping Schema. You may create it in one of two ways:

1.)          By writing it in an editor of your choice, or

2.)          By reading the XML file into a string and then creating the schema from that string.  

 

Step 1: Use the following code to create an XML file:

 

<?xml version="1.0" encoding="UTF-8"?>

<breakfast_menu>

<food>

<name>Belgian Waffles</name>

<price>$5.95</price>

<description>

Two of our famous Belgian Waffles with plenty of real maple syrup

</description>

<calories>650</calories>

</food>

<food>

<name>Strawberry Belgian Waffles</name>

<price>$7.95</price>

<description>

Light Belgian waffles covered with strawberries and whipped cream

</description>

<calories>900</calories>

</food>

<food>

<name>Berry-Berry Belgian Waffles</name>

<price>$8.95</price>

<description>

Light Belgian waffles covered with an assortment of fresh berries and whipped cream

</description>

<calories>900</calories>

</food>

<food>

<name>French Toast</name>

<price>$4.50</price>

<description>

Thick slices made from our homemade sourdough bread

</description>

<calories>600</calories>

</food>

<food>

<name>Homestyle Breakfast</name>

<price>$6.95</price>

<description>

Two eggs, bacon or sausage, toast, and our ever-popular hash browns

</description>

<calories>950</calories>

</food>

</breakfast_menu>

 

Step 2: Create an XML Schema. This XML file will have an .xsd extension once saved. You will need these basic elements to start off your document:

 

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">


>>Your schema code goes here<<


</xs:schema>

 

Submit both the XML file and the .xsd file in a zipped file.

 

Submit this assignment by 11:59 p.m. (ET) on Monday of Module/Week 4.

 

 

 

    • 9 years ago
    Data Mapping
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      data_mapping_week4.zip