On Thu, 21 Oct 2004 09:34:06 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Thank you for the answer but... > > I have no parser validating/understanding schema XML, so which one?
If you are running J2SE 1.4 or later, you already have a parser that can handle schema parsing. Alternatively, grabbing any recent Xerces release will do that too. , and how > can I make my struts config understand Schema validation? > You've got it backwards -- it's not an issue of having the right parser, or anything you can do to a struts-config.xml file yourself -- the issue is that there is no such thing as an XML schema description that defines what a struts-config.xml file is supposed to look like. You will have to invent that if you really want to use schema validation. On the other hand, basically all XML parsers know how to do DTD validation, and Struts already includes a DTD for that purpose -- indeed, this validation is done by default unless you explicitly turn it off. Craig > I know it can be easy for you but it is not clear for me... > > Thanks > > -----Message d'origine----- > De : Craig McClanahan [mailto:[EMAIL PROTECTED] > Envoye : mercredi 20 octobre 2004 19:41 > A : Struts Users Mailing List > Objet : Re: Struts - XML - Validation according to a XML Schema > > > > > On Wed, 20 Oct 2004 13:17:25 +0200, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]