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 and 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
    The Business Order Form in XML can be obtained at the following link.
    Business Order Form
  • 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 a modern browser.
    Here is a list of modern web browsers that were widely used or available between 2021 and 2024:
    Major Browsers
    1. Google Chrome
      • Developed by Google
      • Dominant in the market, known for speed and extensive extension support.
    2. Mozilla Firefox
      • Developed by Mozilla Foundation
      • Focused on privacy, customization, and open-source development.
    3. Microsoft Edge
      • Based on the Chromium engine since 2020.
      • Integrated with Windows 10 and 11, offering performance optimizations and security.
    4. Safari
      • Developed by Apple
      • Exclusive to macOS and iOS, with advanced optimizations for Apple hardware.
    5. Opera
      • Developed by Opera Software
      • Known for its built-in VPN, ad blocker, and innovative features like the sidebar.
    6. Brave
      • Focused on privacy, blocking trackers and ads by default.
      • Built on Chromium.
    7. Vivaldi
      • Developed by Vivaldi Technologies
      • Highly customizable browser based on Chromium.
    8. DuckDuckGo Browser (Launched in Beta in 2022)
      • Privacy-first browser tied to the DuckDuckGo search engine.
      • Mobile version released, desktop in development phases.
    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.