Create an XML document that marks up the nutrition facts for
Create an XML document that marks up the nutrition facts for a package of Grandma White\'s cookies. A package of cookies has a serving size of 1 package and the following nutritional value per serving: 260 calories, 100 fat calories, 11 grams of fat, 2 grams of saturated fat, 5 milligrams of cholesterol, 210 milligrams of sodium, 36 grams of total carbohydrates, 2 grams of fiber, 15 grams of sugar and 5 grams of protein. Name this document nutrition.xml. Load the XML document into your web browser. [Hint: Your markup should contain elements describing the product name, serving size/amount, calories, sodium, cholesterol, proteins, etc. Mark up each nutrition fact/ingredient listed above.] Please submit your XML file nutrition.xml.
Provide XML FILE:
Solution
Nutrition.xml:
<?xml version=\"1.0\"?>
<product>
<product-name>Grandma White\'s Cookies</product-name>
<serving-size> 1 Package </serving-size>
<calories> 260 </calories>
<fat-calories>100 </fat-calories>
<fat> 11 grams </fat>
<saturated-fat> 2 grams </saturated-fat>
<cholestrol>5 milligrams </cholestrol>
<sodium>210 milligrams</sodium>
<carbohydrates> 36 grams </carbohydrates>
<fiber>2 grams </fiber>
<sugar>15 grams</sugar>
<protein>5 grams </protein>
</product>
