Great! Thanks for the link, and cudos to Mike Slinn et.al.
for the good work.
On Sat, 19 May 2001, you wrote:
> FWIW, I think Mike Slinn has put up a web.xml validator (and other
> useful tools/documentation) at
>
> http://tomcat.mslinn.com/
>
>
> On Sat, 19 May 2001, Robert Petersen wrote:
Hmm... correct me where I may be wrong, please.
If the xml doc doesn't conform to the DTD, it is
not 'valid' xml. But, so long as it is 'well formed' the
parser will accept it just the same.
The parser may look to the DTD for a parsing structure, but
the callback utilization of SAX (assumin
FWIW, I think Mike Slinn has put up a web.xml validator (and other
useful tools/documentation) at
http://tomcat.mslinn.com/
On Sat, 19 May 2001, Robert Petersen wrote:
> It matters, and doesn't have to do with SAX vs. DOM, it's because
> of the DTD - check out this bit of the DTD:
> context-
It matters, and doesn't have to do with SAX vs. DOM, it's because
of the DTD - check out this bit of the DTD:
This says that the "servlet-mapping" tags must follow all of the "servlet".
Basically the
tags must be in the order above.
- Robert Petersen
http://www.orangefood.com
-Original Me
I believe that the web.xml is parsed using the DTD, so rearranging the
elements will make it complain that the format of the file is incorrect.
Even if you find a container which lets you rearrange, the spec says you
should follow the DTD. So to be portable . . . .
Regards,
Paul
-Original