W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

RE: Problem with types derived from mixed complex types

From: Biron,Paul V <Paul.V.Biron@kp.org>
Date: Mon, 7 Jun 2004 11:26:38 -0700
Message-Id: <8E9F0028F5955844899380433C60E39902A0D0EB@cscrdemsg001.crdc.kp.org>
To: "'Michael Kay'" <mhk@mhk.me.uk>, telarson@stanford.edu
Cc: xmlschema-dev@w3.org
> -----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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT