Before beginning this assignment, you should prepare your workspace: Where do you want to do your coding homework this semester? You will be doing most of your coding work for this course in the <oXygen/> XML Editor. This is installed in the campus computer labs, and you may also install it on any other computer(s) you plan to work with this semester. Also, before beginning homework assignments, you need to read the related tutorials we have posted (plus notes you took in class) and keep these open and handy to consult as you are working. For the very first assignment, here is what you will need:
Introduction to XML
File Conventions for Canvas Assignments, so you will know how to name this and most other homework files you submit on Canvas.
This assignment should give you experience with:
Imagine yourself as a curator of historical letters by a famous writer from a past century, and you are building a digital resource that makes this author's personal letters available to read and search for interesting kinds of information, and to help bring the past to life
for your readers.
The kinds of information you choose to mark up in XML are up to you, but think of the code you apply as the basis for coding many more letters written by the same person.
Choose the text of one letter linked on one of
the following websites (click through until you see a complete letter with a writer and a recipient), and
copy all relevant text into a new XML document in <oXygen/>. Then, mark it up in well-formed XML, using your own
system of tagging, as seems appropriate, to code the structure and the
content of the document. Important: Save and name your XML document according to the
File Conventions and be sure it as the proper .xml
file extension before you upload to Courseweb!
XML
in the filter window, and click the Create
button to launch a new XML document.angry red, you will know there is an error, perhaps tangled tags or a missing angle bracket, or a missing root element. Notice how <oXygen/> generates a closing tag every time you type your own start tag. One handy trick is to you use your mouse to highlight text you want to wrap in an element, and use Control+E in Windows (or Command+E on a Mac) to bring up a window to enter an element name. (You have to add the attributes after you set an element name.)
Frequently the XML code we write is designed for digital curation, for
preserving and collecting resources. We would certainly not rewrite thebase
text of a writer's personal correspondence, but we would apply markup around passages, so
that our markup supplies some information in a more systematic way. For example,
spaces and formatting on the page tell our human eyes something about the document,
like how to distinguish each item on a list. That formatting information is
not preserved in XML, and so one of the first things we mark
are the structural pieces
. What are the important parts of this document that
you need to distinguish from other parts? Use XML markup to tag
those. Then,
what is the important information that you can label with markup?
There is no single way to do this exercise, but we want you to think about how you nest levels of information (elements within elements), and the relationship between elements and attributes in XML.
Check and make sure you saved your file following our
homework file naming rules, including giving it a .xml
file
extension. Submit your XML file on Canvas on Assignments (for XML Exercise 1) before our next class.