Bob, I replied to your original post - if you did not get that, check the
archive here 
http://mail-archives.apache.org/mod_mbox/tomcat-users/200510.mbox/%3c00fc01c
[EMAIL PROTECTED] 

Re what xml the host tag is referring to, I assume that the xml settings in
host relate to loading all the config files, incl web.xml, tomcat-users,
server.xml, etc.  Can't think of any other reason that the TC engine would
use XML...?

'xmlNamespaceAware' : I think this relates to the DTD, hence if you have
validation true you need 

> -----Original Message-----
> From: Bob Bronson [mailto:[EMAIL PROTECTED] 
> Sent: Friday 28 October 2005 02:27
> To: tomcat-user@jakarta.apache.org
> Subject: Asking Again: What's the "xmlValidation" Attribute for?
> 
> 
> I'm using TC 5.5.12.
> 
> Please look at this snippet from the server.xml that is distributed
> with TC:
> 
>   <!-- Define the default virtual host
>         Note: XML Schema validation will not work with Xerces 2.2.
>     -->
>    <Host name="localhost" appBase="webapps"
>     unpackWARs="true" autoDeploy="true"
>     xmlValidation="false" xmlNamespaceAware="false">
> 
> 
> Can anyone tell me what the 'xmlValidation' attribute on 
> <Host> is for? 
> I realize it has something to do with "XML validation", but 
> what XML is 
> it referring to? Is it the corresponding web.xml? And how does the 
> 'xmlNamespaceAware' attribute fit in?
> 
> And what's the comment about the Xerces 2.2 parser? I'm using 
> Sun's JDK
> 1.5.0. Does it use Xerces internally?
> 
> When I set the 'xmlValidation' attribute to 'true' I get a big stack
> trace. One would think it might be appropriate to offer a nice error
> message describing the problem.
> 
> I've looked at the latest TC documentation for <Host> and it makes no
> mention of the 'xmlValidation' attribute:
> http://tomcat.apache.org/tomcat-5.5-doc/config/host.html
> 
> Can someone please explain these two attributes? My web.xml is getting
> unwieldy and I'd like to start validating it.
> 
> Thanks very much.
> 
> --
> Bob Bronson
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to