Assignment 2: A Simple XML Language

Problem Statement

This XML language will be used to describe information in a resume. High level information includes: name, contact information, and education. Each high level category contains tags that describe more specific pieces of information. Name contains tags describing first name and last name. Contact information contains tags describing the different ways to contact a person. Finally, education contains tags that describe the name of a school, the type of school, its location, GPA, and the period of attendance.

Keyword Design
XML Tag Description
<resume>....</resume> describes information as being in a resume
<name>....</name> applicant's name
<firstname>....</firstname> applicant's first name
<lastname>....</lastname> applicant's last name
<contact>....</contact> contact information
<address>....</address> address
<streetnumber>....</streetnumber> street number
<streetname>....</streetname> name of the street
<aptnumber>....</aptnumber> apartment number
<zip>....</zip> zip code
<city>....</city> city name
<state>....</state> name of state
<phone>....</phone> phone number category
<cell>....</cell> cell phone number
<homephone>....</homephone> home phone number
<officephone>....</officephone> office phone number
<email>....</email> email address
<education>....</education> education category
<hs>....</hs> high school category
<hsname>....</hsname> high school name
<ug>....</ug> undergraduate institution category
<gpa>....</gpa> grade point average
<ugname>....</ugname> undergraduate institution name
<gradmonth>....</gradmonth> month of graduation
<gradyear>....</gradyear> year of graduation
<degreetype>....</degreetype> type of degree (i.e. B.A., B.S., etc.)
<major>....</major> major field of study

Examples of XML Markup

<resume>
<name> 
	<firstname>Dan</firstname>
	<lastname>Bisers</lastname>
</name>

<contact>
	<address>
		<streetnumber>1</streetnumber>
		<streetname>East University Parkway</streetname>
		<aptnumber>410</aptnumber>
		<zip>21218</zip>
		<city>Baltimore</city>
		<state>Maryland</state>
	</address>

	<phone>
		<cell>410-868-8319</cell>
	</phone>
	<email>bisers@gmail.com</email>
</contact>

<education>
	<hs>
		<hsname>Hampton High School</hsname>
		<address>
			<city>Allison Park</city>
			<state>Pennsylvania</state>
		</address>
	</hs>
	
	<ug>
		<ugname>University of Maryland, College Park</ugname>
		<address>
			<city>College Park</city>
			<state>Maryland</state>
		</address>
		<degreetype>B.S.</degreetype>
		<major>Civil Engineering</major>
		<gradmonth>May</gradmonth>
		<gradyear>2011</gradyear>
		<gpa>4.0</gpa>
	</ug>
</education>
</resume>

Hierarchy of Keywords and Content