RE: question about Xerces

Xerces 2.0.0B4 can validate both. It's just that you have to tell it to.

If you're invoking the dom.Counter example program on the command line to
validate your schema and instance documents, you need to make sure to use
the -s, -f ,  and -v flags to get it to validate your schema (-s) fully(-f)
and to also validate the instance(-v). 

Looking at the source in dom/Counter.java, the defaults are set to "false."
That example file also demonstrates how to activate validation, if you're
calling Xerces programmatically. I suspect that similar guidance can be
found in the C++ example source.

Mark

----------------------------------------------------------------------------
----
 
Mark Feblowitz                                   [t] 617.715.7231
Frictionless Commerce Incorporated     [f] 617.495.0188 
XML Architect                                     [e]
mfeblowitz@frictionless.com
400 Technology Square, 9th Floor 
Cambridge, MA 02139 
www.frictionless.com  
 

 -----Original Message-----
From: 	Letaïef Kaïs
[mailto:0e0f910cf343a218c9a7080e8628190c@orangatango.com] 
Sent:	Monday, January 14, 2002 8:41 AM
To:	xmlschema-dev@w3.org
Subject:	question about Xerces

Manage your e-mail privacy at
http://www.orangatango.com/p/mailblox/home.pl?id=337569
(This message sent through Orangatango simple ID 337569)

hi,

is the Xerces parser may check and validate an XML
document against an XML schema or it can just validate
an XML schema (structure, syntax,...)

thanks in advance. 

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr

Received on Monday, 14 January 2002 09:02:21 UTC