I have a question. Am I right that if the web.xml file is validated with a XML Scheme instead of a DTD file, the ordering of the elements in the tags does not matter. For example: With a scheme the following would be valid: <servlet> <servlet-class></servlet-class> <servlet-name> </servlet-name> </servlet> With a DTD this will not be valid, because the ordering of the elements does matter.
If I am right, what version is asked in the 1.4 exam, the DTD or the Scheme.
Prior to the J2EE 1.4 specifications, each Deployment Descriptor must be valid with respect to a specific DTD that describes the Deployment Descriptor. Starting with the J2EE 1.4 specification, each specification requires its Deployment Descriptor be validated with respect to an XML Schema. As Sun would still support the code written using previous I think the validation of DD with a corresponding DTD is still supported. I hope this info helps.