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.

From which interface in the DOM are all the others derived?

2.

The DOM is specific to which programming language?

3.

How do the NodeList and NamedNodeList interfaces differ?

4.

Which interfaces support attributes?

Quiz Answers

1.

All of the interfaces in the DOM are derived from the Node interface, with the exception of the NodeList interface.

2.

Sorry, this is a trick question! The DOM is not specific to any programming language.

3.

The NamedNodeList interface is an extension of the NodeList interfaceit adds support for retrieval of members using the node name.

4.

The Element and Entity interfaces support attributes.

Exercises

1.

Write a script that converts all of the attributes in an XML document into child elements of the elements that they were associated with.

2.

Write a program that shows the names of only those elements that have attributes and no children.




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