• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

XML Data

The results of sales presentations are graded. There are five data points in the data: program name, region, city, grade, and presentation date. The data is stored in XML format. The root element is named Grades. Within the root are Record elements, which in turn have the five children elements. A business decision has been made to leave out customer names to ensure lack of bias. Listing 14.1 shows a portion of the XML file.

Listing 14.1. The grades are kept in an XML file.

<?xml version="1.0"?>
<Grades xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="grades.xsd">
  <Record>
    <Program>CoopAds</Program>
    <Region>East</Region>
    <City>Philadelphia</City>
    <Grade>B</Grade>
    <Date>3/2/2003</Date>
  </Record>
  <Record>
    <Program>CoopAds</Program>
    <Region>East</Region>
    <City>Philadelphia</City>
    <Grade>C</Grade>
    <Date>3/4/2003</Date>
  </Record>
  <Record>
    <Program>CoopAds</Program>
    <Region>East</Region>
    <City>Philadelphia</City>
    <Grade>A</Grade>
    <Date>3/6/2003</Date>
  </Record>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint