You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bob Bronson <rb...@yahoo.com> on 2005/10/28 03:26:36 UTC
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Asking Again: What's the "xmlValidation" Attribute for?
Posted by Steve Kirk <to...@web-startup.co.uk>.
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
5da42$d1f57bb0$0201a8c0@sjkdesktop%3e
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:rbronson1976@yahoo.com]
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Asking Again: What's the "xmlValidation" Attribute for?
Posted by Bob Hall <rf...@yahoo.com>.
Bob,
Here's a site that shoule shed some light on your
xml validation question:
<http://tools.decisionsoft.com/schemaValidate.html>
HTH,
Bob
--- Bob Bronson <rb...@yahoo.com> wrote:
> 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:
> users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail:
> users-help@tomcat.apache.org
>
>
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org