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. |