April 19, 2009

0 Viewing XML files in Firefox and Internet Explorer:

In Firefox and Internet Explorer

Open the XML files (typically by clicking on a link) - the XML document will be displayed with color-coded root and child elements.Aplus (+) or minus sign (-) to the left of the elements can be clicked to expand or collapse the element structure.To view the raw XML source (without the + and - signs), select "View Page Source" from the browser menu.

A Simple Food Menu
This is a breakfast food menu from a restaurant, stored as XML data.
<?xml version="1.0" encoding="ISO-8859-1" ?>

<breaskfast_menu>
<food>
<name>Belgian Waffles</name>
<price>$6.95</price>
<description>two of our famous Belgian Waffles with plenty of real sample syrup</description>
<calories>650</calories>
</food>
<food>
<name>Sample 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 withan 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>
</breakast_menu>







Belgian Waffles
$6.95
two of our famous Belgian Waffles with plenty of real sample syrup
650


Sample Waffles
$7.95
light Belgian waffles covered with strawberries and whipped cream
900


Berry-Berry Belgian Waffles
$8.95
light Belgian waffles covered withan assortment of fresh berries and whipped cream
900


French Toast
$4.50
thick slices made from our homemade sourdough bread
600


Homestyle Breakfast
$6.95
two eggs, bacon or sausage, toast, and our ever-popular hash browns
950




0 comments:

Post a Comment

Blogger Themes

 
Powered by Blogger