XML week 2 Homework
- Create a well-formed XML document, based on the example below.
- Verify the well-formedness of the document using a browser such as Mozilla 0.7.
- Write a DTD which validates the XML document you created.
- Extra: Write an XML Schema which validates the document.
Example for class 2 homework
Your company is preparing to market its new product,
the iGinger, an all purpose home robot. The robots
will be custom built to meet the needs of each customer.
Your job involves setting up a system to get the orders
from the customers to the factory. You've decided to
standardize on XML to represent the orders. You need
to create a DTD that describes a valid customer order.
The XML document will need to include customer information
such as name and customer number, as well as details of
the customer's order.
Here are the specifications of the iGinger robot:
- Case - Available in 4 colors: Lemonade, Lime, Strawberry, Blueberry
- Batteries - All iGinger orders must include at least one battery to
power the robot. If the computer is built in (see Computer, below), the machine must have
a second battery to power it. To increase running time between recharges, the iGinger can
be ordered with as many as 4 batteries.
- Battery Recharger - The built-in recharger is available for
110-120 volts (US) or 220-240 volts (Europe).
- Computer - The computer can be on-board the iGinger, in which case
a second battery is required to power it. It could instead be external, plugged into an
outlet, in which case it communicates with the robot via radio (see Radio, below).
- Radio - A radio is required to communicate with the robot, if it is
using an external computer. The low power radio has a range of up to 50 meters. A high
power radio which has a range of up to 300 meters is available. If the computer is built in, no
radio is needed.
- Robotic arms - The iGinger can be ordered with 2 or 3 robotic arms.
Each arm can be ordered with a maximum reach of 50, 75, or 100 centimeters.
- Video camera - The robot can be ordered with 1 video camera, or
with 2 cameras for stereo vision.
- Speech Unit - An optional software package allows the computer to
speak and understand as many as 7 different languages. The 7 language packages that can
be ordered are: English, Spanish, French, German, Arabic, Japanese, and Chinese.
- Optional Attachments - Each iGinger attachment is available for
an added fee:
- Stair climbing attachment
- Floor scrubber
- Diaper changing unit
- Laundry module
XML class 2 notes
Scott Shurr at face46@mediaone.net
Last modified: 4 February, 2001