9.10 Assignment #6: DOM

due: Wednesday, Nov 12

Write a validating DOM program that accepts XML files satisfying the given DTD. For each student the program should output the following information.

<!ELEMENT grades (grade | weight)* >  
<!ELEMENT grade ((name,score) | (score,name)) >  
<!ATTLIST grade num CDATA #IMPLIED >  
<!ELEMENT weight (coefficient) >  
<!ATTLIST weight num CDATA #IMPLIED >  
<!ELEMENT name (#PCDATA) >  
<!ELEMENT score (#PCDATA) >  
<!ELEMENT coefficient (#PCDATA) >