Writing a DTD - Exercise

Welcome to our free XML tutorial. This tutorial is based on Webucator's Introduction to XML Training course.

Contact Us or call 1-877-932-8228
Writing a DTD - Exercise

Writing a DTD

Duration: 60 to 90 minutes.

In this exercise, you will write a DTD for the business letter shown below. You will then mark up the business letter as a valid XML document according to your DTD. Make sure that the XML file contains a DOCTYPE declaration.

Both documents should be saved in the DTDs/Exercises folder. To test whether the XML file is valid, visit www.xmlvalidation.com/ and upload your XML document and DTD.

Code Sample:

DTDs/Exercises/BusinessLetter.txt
November 29, 2011

Joshua Lockwood
Lockwood & Lockwood
291 Broadway Ave.
New York, NY 10007
United States

Dear Mr. Lockwood:

Along with this letter, I have enclosed the following items:

	- two original, execution copies of the Webucator Master Services Agreement
	- two original, execution copies of the Webucator Premier Support for 
		Developers Services Description between 
		Lockwood & Lockwood and Webucator, Inc.
	
Please sign and return all four original, execution copies to me at your
earliest convenience.  Upon receipt of the executed copies, we will 
immediately return a fully executed, original copy of both agreements to you.

Please send all four original, execution copies to my attention as follows:

	Webucator, Inc.
	4933 Jamesville Rd.
	Jamesville, NY 13078  USA
	Attn: Bill Smith
	
If you have any questions, feel free to call me at 800-555-1000 x123 
or e-mail me at bsmith@webucator.com.

Best regards,

Bill Smith
VP, Operations
Next

This tutorial is based on Webucator's Introduction to XML Training Course. We also offer many other XML Training courses. Sign up today to get help from a live instructor.