Creating Documents  «Prev  Next»

Adding information to XML documents

Create a well-formed document and check its well-formedness

Objective:Create a well-formed XML document for a business order form and check its well-formedness.

Exercise Scoring

This exercise is worth a total of 5 points. To receive full credit, you will need to create all XML elements that are needed to describe the business order form and use these elements to build a well-formed XML document.

Background/overview

XML is ideal for representing business-related documents. In this exercise, you will create a well-formed XML document that represents an order form.

Instructions

Business Order Form
Click the Easy Reference button for a printable version of the Business Order Form in its own window. All the Easy Reference files for this course are also available from the Resources page.
Create a well-formed XML document that will represent this order form. In your answer you should:
  1. Create a simple diagram that represents that structure of this order form. This will be a tree-like structure. Begin by identifying the root element of the tree, then identify braches and sub-branches as needed.
  2. Identify the XML elements you will use to represent the document structure.
  3. Create a well-formed XML document that represents the order form using the XML elements you have defined.
  4. Submit your well-formed XML document.

Optional

If you have access to Internet Explorer 7.x, load the XML document into the browser.
If Internet Explorer loads the document correctly, then it is well-formed. Otherwise, Internet Explorer will list any errors it encountered while parsing the document.

Submitting your exercise

Enter your answer into the text box below.
Click the Submit button to submit your answer.