You may also want to check out XMLUnit (http://xmlunit.sourceforge.net). However, according to the docs, I think it may only support validation against a DTD, not a Schema.
> -----Original Message----- > From: Ben Anderson [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 23, 2004 7:29 AM > To: Maven Users List > Subject: Re: How do I test a schema > > > That's funny - I was trying to do this yesterday, but gave up. > You'll need the validate plugin jar here: > http://jakarta.apache.org/commons/jelly/libs/validate/index.html > I'm not sure where you're supposed to stick these jars. I put it in > $MAVEN_HOME/lib and that worked, but it's probably supposed to go > somewhere > else. There's also some documentation there, but no examples. > Here's what I > had thus far: > > <goal name="validate"> > <!--we need to create a new java.io.File <u:new ... > <v:verifier var="mySchema" file=".../> > <v:validate var="isValid" verifier="mySchema"> > some xml - possibly importing a file somehow. > </v:validate> > --> > </goal> > > of course this doesn't work. Maybe together we can figure it out. > -Ben > > Quoting "Helck, Christopher" <[EMAIL PROTECTED]>: > > > I'd like to automate testing a XML schema under maven, but I don't have > > a clue how to begin :-). I have a schema and some example XML files. I'd > > like to validate the files against the schema. Any help is appreciated. > > > > Thanks, > > C. Helck > > > > > > > > > > The information contained in this e-mail is confidential. This e-mail is > > intended only for the stated addressee. If you are not an > addressee, you > > must not disclose, copy, circulate or in any other way use or > rely on the > > information contained in this e-mail. if you have received this > e-mail in > > error, please inform us immediately and delete it and all > copies from your > > system. > > > > EBS Dealing Resources International Limited. Registered address: 55-56 > > Lincoln's Inn Fields, London WC2A 3LJ, United Kingdom. Registered number > > 2633663. > > > > EBS Dealing Resources, Inc, registered in Delaware. Address: 535 Madison > > Avenue, 24th Floor, New York, NY 10022, USA, and One upper Pond road, > > Building F - Floor 3, Parsippany, NJ 07054, USA. > > > > EBS Dealing Resources Japan Limited, a Japanese Corporation. > Address: Asteer > > Kayabacho Bldg, 6th Floor, 1-6-1, Shinkawa, Chuo-Ku, Tokyo > 104-0033, Japan. > > > > > > > > > --------------------------------------------------------------------- > 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]
