Exercise 1: Creating a well-formed XML document

Build an XML file with at least three element types and a total of five elements. For example, the root element of the document would contain at least one child, but that child could contain further descendants. A particular element, like a paragraph or name, might need to occur in the XML document more than once.

The elements, including the root element, should be structural or semantic ones that you devise. Do not rely on existing markup languages like HTML, though some duplication among markup vocabularies is unavoidable.

The goal of the exercise is for you to devise XML elements and develop a well-formed XML document from them. Your elements should describe the structure of the document contained in the file or the role played by the element .

Choose a common genre of workplace document (such as a letter), a product specification (like a computer monitor), or a work of art or entertainment (like a movie review).

For an example, see the XML memo that follows.

<memo>
      <from>Your name</from>
      <to>Your friend</to>
      <date>Month DD, YYYY</date>
      <subject>My first XML file</subject>
<body> <para>This is my first XML file for the course.</para> <para>I would put all the content of my memo in para elements within the body.</para> </body> </memo>

Save the file as yourName-well-formed.xml where yourName is your first initial and last name (example: vmorrow-well-formed.xml). Include the file in a ZIP archive (yourName-well-formed.zip) and upload to the Exercise section on Blackboard..