xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Ye <eri...@locus.apache.org>
Subject Re: Is Xerces 1.2.0 for java actually using schemas to validate?
Date Mon, 11 Sep 2000 06:24:26 GMT
Yes, Xerces 1.2.0 does support validation with Schema. I guess you didn't
use "-v" when you invoked DOMCount, by default validation is off for all
sample programs. You can type in :
   java ... dom.DOMCount

to find out all the available options and their default settings.

Best regards
Eric Ye
IBM JTC-Silicon Valley

----- Original Message -----
From: "Travers Waker" <traversw@innoforge.co.za>
To: <general@xml.apache.org>
Sent: Sunday, September 10, 2000 4:42 AM
Subject: Is Xerces 1.2.0 for java actually using schemas to validate?

> I recently downloaded Xerces 1.2.0 for java and ran the sample program
> "DOMCount" on the sample data personal-schema.xml.  This works fine, and I
> assumed it was validating the peronal-schema.xml using personal.xsd.
> However, when I edit the schema (personl.xsd) and change something like
> minimum number of occurrances of the <person> element to a value that
> cause  personal-schema.xml to fail validation (for example, setting it to
> 200, since there are only 6 <person> elements in personal-schema.xml),
> DOMCount just continues operating as normal.  It seems that the schema is
> not being used for validation.
> Can anybody point out where I am going wrong?  Any help is much
> Travers Waker
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org

View raw message