| CIT 597 Quiz 4: DTDs and DOM | |
| Fall 2008, David Matuszek | Name_________________________________________ |
<link>
<linkText>Dr. Dave's Home page</linkText>
<url>www.cis.upenn.edu/~matuszek</url>
</link>
<!ATTLIST dog
name CDATA #REQUIRED
age CDATA #IMPLIED> NODE, and for each one, tell what getNodeValue() returns. NODE of type __Element__, getNodeValue() returns
_____null______. NODE of type __Text_____, getNodeValue() returns
__ the
text contents.NODE of type ___Attr___, getNodeValue() returns
the value of the attribute.NamedNodeMap is not a subinterface
of Map.
Give a possible explanation for why this is so.