- From: Biron,Paul V <Paul.V.Biron@kp.org>
- Date: Mon, 7 Jun 2004 11:26:38 -0700
- To: "'Michael Kay'" <mhk@mhk.me.uk>, telarson@stanford.edu
- Cc: xmlschema-dev@w3.org
Received on Monday, 7 June 2004 14:39:55 UTC
> -----Original Message----- > From: Michael Kay [mailto:mhk@mhk.me.uk] > Sent: Monday, June 07, 2004 11:18 AM > To: telarson@stanford.edu > Cc: xmlschema-dev@w3.org > 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
Received on Monday, 7 June 2004 14:39:55 UTC