Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: Problem with types derived from mixed complex types [Thread Next] RE: Problem with types derived from mixed complex typesTo: "'Michael Kay'" <mhk@---.--.-->, telarson@--------.--- Date: 6/7/2004 4:27:00 AM > -----Original Message-----
> From: Michael Kay [mailto:mhk@m...]
> Sent: Monday, June 07, 2004 11:18 AM
> To: telarson@s...
> Cc: xmlschema-dev@w...
> Subject: RE: Problem with types derived from mixed complex types
>
> How do you use Xerces to validate schemas? Is there a simple
> code snippet you could provide?
>
> I have found the Xerces API extremely difficult to fathom. I
> usually drive it via Stylus Studio.
The easiest way is to have the xercesSamples.jar in your classpath and simply do:
java sax.Counter -v -s -f {instance-uri}
assuming the instance has an xsi:schemaLocation hint.
For more info, see [1].
pvb
[1] http://xml.apache.org/xerces2-j/samples-sax.html#Counter
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
