CIS97 YT > Midterm Project 1 > Relax NG Projects > Roster Markup Language Sample

Relax NG Projects
Roster Markup Language Sample

Project Index | Documentation | Relax NG | Sample XML File

<?xml version="1.0"?>

  <roster>
    <school-info>
      <school-name>De Anza</school-name>
      <school-address>
        <address>21250 Stevens Creek Blvd.</address>
        <city>Cupertino</city>
        <state>CA</state>
        <zipcode>95014</zipcode>
      </school-address>
      <school-phone>408.864.5678</school-phone>
    </school-info>
    
    
    <course-info>
      <course-code>CIS089a</course-code>
      <course-section>01</course-section>
      <course-desc xmlns:xh="http://www.w3.org/1999/xhtml">
        <xh:strong>World Wide Web Page Development</xh:strong>:
        A course about developing web pages using HTML and other
        <xh:em>web related</xh:em> technologies.
      </course-desc>
      <term>Summer</term>
      <term-length>6</term-length>
      <year>2002</year>
    </course-info>
    
    
    <instructor-info>
      <instructor-name>
        <first-name>Marie</first-name>
        <last-name>Taylor-Harper</last-name>
      </instructor-name>
      <instructor-address>
        <address>123 Flin-Flon Lane</address>
        <city>Flin-Flon</city>
        <state>CA</state>
        <zipcode>99999</zipcode>
      </instructor-address>
      <instructor-phone>408.999.9999</instructor-phone>
      <instructor-ssn>123-45-6789</instructor-ssn>
    </instructor-info>

    <students>
      <student-info>
        <student-name>
          <first-name>John</first-name>
          <initial>P</initial>
          <last-name>Smith</last-name>
        </student-name>
        <student-id>123121234</student-id>
        <student-phone type="Home">408.999.9999</student-phone>
        <student-phone type="Mobile">650.999.9999</student-phone>
        <email>j_t_smith@testmail.com</email>
        <nt-username>jsmith</nt-username>
        <unix-username>jts12345</unix-username>
        <password-info>
          <class-id>1234</class-id>
          <password>mypwrd</password>
          <mothers-maiden-name>Smitters</mothers-maiden-name>
        </password-info>

        <attendance>
          <period>
            <date>7-10-2002</date>
            <tardiness>Present</tardiness>
          </period>
          <period>
            <date>7-11-2002</date>
            <tardiness>Absent</tardiness>
          </period>
          <period>
            <date>7-12-2002</date>
            <tardiness>Late</tardiness>
          </period>
        </attendance>

        <grades>
          <assignment>
            <date>7-10-2002</date>
            <assignment-num>1</assignment-num>
            <description xmlns:xh="http://www.w3.org/1999/xhtml">Search Engines</description>
            <summary xmlns:xh="http://www.w3.org/1999/xhtml">
              Student failed to answer question 10.
            </summary>
            <grade>
              <percentage>90</percentage>
              <letter-grade>A</letter-grade>
            </grade>
          </assignment>
          <midterm>
            <date>7-11-2002</date>
            <start-time>10:25:34</start-time>
            <end-time>11:05:24</end-time>
            <grade>
              <percentage>85</percentage>
              <letter-grade>B</letter-grade>
            </grade>
          </midterm>
          <assignment>
            <date late="Yes">7-10-2002</date>
            <assignment-num>2</assignment-num>
            <description xmlns:xh="http://www.w3.org/1999/xhtml"><xh:em>Basic</xh:em> HTML Tags</description>
            <summary xmlns:xh="http://www.w3.org/1999/xhtml">
              Student completed assignment <xh:strong>failing</xh:strong> to do half the questions.
            </summary>
            <grade>
              <percentage>73</percentage>
              <letter-grade>C</letter-grade>
            </grade>
          </assignment>
          <final>
            <date>8-11-2002</date>
            <start-time>12:45:34</start-time>
            <end-time>2:30:01</end-time>
            <grade>
              <percentage>98</percentage>
              <letter-grade>A</letter-grade>
            </grade>
          </final>
        </grades>

      </student-info>
      
    </students>  

  </roster>