xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travers Waker" <trave...@innoforge.co.za>
Subject Re: Is Xerces 1.2.0 for java actually using schemas to validate?
Date Mon, 11 Sep 2000 08:20:57 GMT
Thank you very much - it works now.

Actually, when I  "java ... dom.DOMCount -h", it reports that the defualt is
validation=on, which is clearly not the case, so there is a minor bug in the
output of DOMCount -h. (I'm using Xerces 1.2.0)


----- Original Message -----
From: "Eric Ye" <ericye@locus.apache.org>
To: <general@xml.apache.org>
Sent: Monday, September 11, 2000 8:24 AM
Subject: Re: Is Xerces 1.2.0 for java actually using schemas to validate?


> 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
> the
> > minimum number of occurrances of the <person> element to a value that
> should
> > 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
> appreciated.
> >
> > 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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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
>


Mime
View raw message