If you want to just read the file and validate it against some rules, then may be you need to write a dtd/schema for the file and just read teh file using xerces or some other parser while setting the validate feature true...That is simple and easy..Apart from writting the xml schema /dtd part..:-))
But if you need to populate java objects from the xml file contents, have a look at Castor.It eliminates the need to know jaxp at all.. If you need any more help,let me know. regards, Shirish -----Original Message----- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 6:25 AM To: Struts Users Mailing List Subject: RE: Newbie Question:XML parsing Nah, thats really a job for your parser. Struts does come with a marvellous thing called "Digester" (which is part of the commons project) but thats used for creating objects (usually for configuration (its used in struts to process struts-config)) so is probably not applicable to what your trying to do. (Digester itself uses whatever parser is available to do the underlying xml parsing) btw: Try and use the jaxp api if you can, then you wont be tying yourself to any particular parser implementation so if you later decide to use a different parser than xerces you can. -----Original Message----- From: Sushil Jain [mailto:[EMAIL PROTECTED] Sent: Sunday, 5 June 1994 12:08 To: Struts Users Mailing List Subject: Newbie Question:XML parsing I am new to Struts. I am buiding an application in which I need to explicitily read an XML file as Input , and then validate the file itself and the fields of the record in it against some rules . Wanted to know if Struts provide some mechanism for it or there need to use some parser like xerces for it. Thanks Sushil >Disclaimer : >This message is intended only for the named recipient. If you are not >the intended recipient you are notified that disclosing, copying, >distributing or taking any action in reliance on the contents of this >information is strictly prohibited. > > > >--------------------------------------------------------------------- >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] > _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

