Workshop


The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.

Quiz

1.

Why are namespaces named after URIs?

2.

What is the general form of a namespace declaration?

3.

What is the difference between default and explicit namespace declaration?

Quiz Answers

1.

Namespaces are named after URIs because URIs are guaranteed to be unique.

2.

The general form of a namespace declaration is xmlns:Prefix="NameSpace".

3.

A default namespace declaration is useful when you want to apply a namespace to an entire document or section of a document, whereas an explicit namespace is useful whenever you want exacting control over the elements and attributes that are associated with a namespace.

Exercises

1.

Using a domain name that you or your company owns, determine a unique namespace name that you could use with the Tall Tales document from previous hours.

2.

Modify the Tall Tales document so that the elements and attributes defined in its schema are associated with the namespace you just created.




Sams Teach Yourself XML in 24 Hours
Sams Teach Yourself XML in 24 Hours, Complete Starter Kit (3rd Edition)
ISBN: 067232797X
EAN: 2147483647
Year: 2005
Pages: 266

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net