Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

SCWCD Question

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

regards
Benedikt
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Benedikt,

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic