Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Problem with types derived from mixed complex types

From: "Biron,Paul V" <Paul.V.Biron@--.--->
To: "'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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent