Re: Validation with XML4J

Hi Rousse,

The SAXCount.java sample in the XML4J samples does not contain the
validation option. It just performs plain parsing and counting of elements.
I want to stick to the XML4J parser and not switch to the xerces parser for
validation alone as the remaining part of my module performs plain parsing
using XML4j.
So please let me know if you can help me with validating xml schemas using
xml4j.

Thanks
Seema

----- Original Message ----- 
From: "Guillaume Rousse" <rousse@ccr.jussieu.fr>
To: <xmlschema-dev@w3.org>
Cc: "Seema Kumar" <2kseema@sun20.datamatics.com>
Sent: Thursday, December 06, 2001 7:49 PM
Subject: Re: Validation with XML4J


> Ainsi parlait Seema Kumar :
> > Hi all,
> >
> > Could anybody provide me with the code or the methods to be used for
> > validating an xml against a schema using the XML4J parser ?
> > I am not able to find any sample code in the documentation.
> As xml4j use the same code base as xerces-j, i guess you can invoke the 
> sax.SAXCount or dom.DOMCount classes (from samples) with following flags:
> -in <file> the file to validate
> -v to triggers validation
> -- 
> Guillaume Rousse <rousse@ccr.jussieu.fr>
> GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html

Received on Friday, 7 December 2001 01:06:00 UTC