You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Yo...@fr.thalesgroup.com on 2004/10/20 13:17:25 UTC
Struts - XML - Validation according to a XML Schema
Hi,
i would like to parse a XML file through Struts AND also according to a XML
schema.
so may question is...what is the method to validate a XML file with a XML
Schema before parsing it?
thank you
YR
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts - XML - Validation according to a XML Schema
Posted by Hariharan V <ha...@gmail.com>.
I guess u will have to use some xml parser for this
u can get more info from
www.jdom.org
On Wed, 20 Oct 2004 13:17:25 +0200, yoni.rachovitch@fr.thalesgroup.com
<yo...@fr.thalesgroup.com> wrote:
> Hi,
>
> i would like to parse a XML file through Struts AND also according to a XML
> schema.
>
> so may question is...what is the method to validate a XML file with a XML
> Schema before parsing it?
>
> thank you
>
> YR
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Struts - XML - Validation according to a XML Schema
Posted by Craig McClanahan <cr...@gmail.com>.
On Wed, 20 Oct 2004 13:17:25 +0200, yoni.rachovitch@fr.thalesgroup.com
<yo...@fr.thalesgroup.com> wrote:
> Hi,
>
> i would like to parse a XML file through Struts AND also according to a XML
> schema.
>
> so may question is...what is the method to validate a XML file with a XML
> Schema before parsing it?
>
Besides needing a parser that understands Schema, you'll also need a
schema definition for Struts configuration files. Currently, Struts
provides only a DTD (but it will do a validating parse of the
configuration file if you ask it to).
> thank you
>
> YR
Craig
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org