Google Search

Saturday, January 29, 2011

Create a XML document to store an address book MC1803 XML AND WEB SERVICES LAB Anna University lab manual download fifth semester

Create a XML document to store an address book MC1803 XML AND WEB SERVICES LAB Anna University lab manual download fifth semester


Create a XML document to store an address book

  <?xml version="1.0" encoding="ISO-8859-1" ?>
<MyAddressBook>
 <AddressBook>
  <Name>Rahul</Name>
<Address>
  <Address1>116</Address1>
  <Address2>Vivekanandan Street</Address2>
  <Address3>AnnaNagar</Address3>
</Address>
   <city>Chennai</city>
   <state>TamilNadu</state>
   <phone>98562 81522</phone>
 </AddressBook>
<AddressBook>
  <Name>Rashmi</Name>
<Address>
  <Address1>11</Address1>
  <Address2>Ramanujar Street</Address2>
  <Address3>Kilpauk</Address3>
</Address>
   <city>Chennai</city>
   <state>TamilNadu</state>
   <phone>933462 81522</phone>
</AddressBook>
<AddressBook>
  <Name>Pooja</Name>
<Address>
  <Address1>11/6</Address1>
  <Address2>Bharathiar Street</Address2>
  <Address3>Mylapore</Address3>
</Address>
   <city>Chennai</city>
   <state>TamilNadu</state>
   <phone>98862 89872</phone>
</AddressBook>
</MyAddressBook>

Create a XML document to store a breakfast menu

<?xml version="1.0" encoding="ISO-8859-1"?>
<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>





Create a XML document to store a CD catalogue

<?xml version="1.0" encoding="ISO-8859-1"?>
<CATALOG>
            <CD>
                        <TITLE>Empire Burlesque</TITLE>
                        <ARTIST>Bob Dylan</ARTIST>
                        <COUNTRY>USA</COUNTRY>
                        <COMPANY>Columbia</COMPANY>
                        <PRICE>10.90</PRICE>
                        <YEAR>1985</YEAR>
            </CD>
            <CD>
                        <TITLE>Hide your heart</TITLE>
                        <ARTIST>Bonnie Tyler</ARTIST>
                        <COUNTRY>UK</COUNTRY>
                        <COMPANY>CBS Records</COMPANY>
                        <PRICE>9.90</PRICE>
                        <YEAR>1988</YEAR>
            </CD>
            <CD>
                        <TITLE>Greatest Hits</TITLE>
                        <ARTIST>Dolly Parton</ARTIST>
                        <COUNTRY>USA</COUNTRY>
                        <COMPANY>RCA</COMPANY>
                        <PRICE>9.90</PRICE>
                        <YEAR>1982</YEAR>
            </CD>
            <CD>
                        <TITLE>Still got the blues</TITLE>
                        <ARTIST>Gary Moore</ARTIST>
                        <COUNTRY>UK</COUNTRY>
                        <COMPANY>Virgin records</COMPANY>
                        <PRICE>10.20</PRICE>
                        <YEAR>1990</YEAR>
            </CD>
           
</CATALOG>







Create a XML document to store Plant catalogue

<?xml version="1.0" encoding="ISO-8859-1"?>
<CATALOG>
            <PLANT>
                        <COMMON>Bloodroot</COMMON>
                        <BOTANICAL>Sanguinaria cadensis</BOTANICAL>
                        <ZONE>4</ZONE>
                        <LIGHT>Mostly Shady</LIGHT>
                        <PRICE>$2.44</PRICE>
                        <AVAILABILITY>031599</AVAILABILITY>
            </PLANT>
            <PLANT>
                        <COMMON>Columbine</COMMON>
                        <BOTANICAL>Aquilegia canadensis</BOTANICAL>
                        <ZONE>3</ZONE>
                        <LIGHT>Mostly Shady</LIGHT>
                        <PRICE>$9.37</PRICE>
                        <AVAILABILITY>030699</AVAILABILITY>
            </PLANT>
            <PLANT>
                        <COMMON>Marsh Marigold</COMMON>
                        <BOTANICAL>Caltha palustris</BOTANICAL>
                        <ZONE>4</ZONE>
                        <LIGHT>Mostly Sunny</LIGHT>
                        <PRICE>$6.81</PRICE>
                        <AVAILABILITY>051799</AVAILABILITY>
            </PLANT>
            <PLANT>
                        <COMMON>Cowslip</COMMON>
                        <BOTANICAL>Caltha palustris</BOTANICAL>
                        <ZONE>4</ZONE>
                        <LIGHT>Mostly Shady</LIGHT>
                        <PRICE>$9.90</PRICE>
                        <AVAILABILITY>030699</AVAILABILITY>
            </PLANT>
<PLANT>
                        <COMMON>Dutchman's-Breeches</COMMON>
                        <BOTANICAL>Dicentra cucullaria</BOTANICAL>
                        <ZONE>3</ZONE>
                        <LIGHT>Mostly Shady</LIGHT>
                        <PRICE>$6.44</PRICE>
                        <AVAILABILITY>012099</AVAILABILITY>
</PLANT>
</CATALOG>

Create  a XML file to store  Book  Information

<?xml version="1.0"?>
<library>
<book>
  <novel>
    <detective>
      <bname>Sherlock Holmes</bname>
      <author>
        <fa>
          <fname>Sherlock</fname>
          <lname>Holmes</lname>
          <royalty>25%</royalty>
          <qualification>BA</qualification>
          <address>
            <add1>44, Garden Street</add1>
            <add2>Michigan</add2>
            <add3>USA</add3>
          </address>
          <specialization>English Litt.</specialization>
        </fa>
        <sa>
          <fname>Jane</fname>
          <lname>Holmes</lname>
          <royalty>10%</royalty>
          <qualification>BA</qualification>
          <address>
            <add1>44, Garden Street</add1>
            <add2>Michigan</add2>
            <add3>USA</add3>
          </address>
          <specialization>English Litt.</specialization>
        </sa>
      </author>
      <price>Rs.150</price>
  <publication>
        <pname>McKinsey Publications</pname>
        <addr>USA</addr>
      </publication>
      <page>1024</page>
      <review>
        <date>10/10/1999</date>
        <by>
          <byperson1>Arthur Wilson</byperson1>
          <byperson2>Raven McKinsey</byperson2>
          <byperson3>Franco Columbo</byperson3>
          <byperson4>Mike Whitney</byperson4>
        </by>
        <reviewno>2</reviewno>
        <comment>Updated Edition</comment>
      </review>
    </detective>

    <romance>
      <!--Same Structure as novel with different data-->
    </romance>

    <comic>
      <!--Same Structure as novel with different data-->
    </comic>
  </novel>

  <technical>
    <!--Same Structure as novel with different data-->
  </technical>

  <management>
    <!--Same Structure as novel with different data-->
  </management>

  <fiction>
    <!--Same Structure as novel with different data-->
  </fiction>

<devotional>
    <!--Same Structure as novel with different data-->
</devotional>

</book>
</library>






0 comments:

Post a Comment