You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Axelle Apvrille (LMC)" <Ax...@ericsson.ca> on 2003/02/21 22:32:00 UTC

Schema validation & location question with DOM Parser.

Hi all,
I'd like to validate my (small) XML document against my (small ;-)) XML 
schema.
I've seen multiple posts in the archives of this mailing-list + the 
DOMPrinter sample, but I must admit I am quite confused... I can't get 
it quite to work, nor do I really understand exactly what's going on.

I managed to get my source code do some validation, but it complains 
about schema location "Message: The schemaLocation attribute does not 
contain pairs of values"... and as a matter of fact, I'm unsure how to 
tell him where my schema is.

- there doesn't seem to be any validation against my schema unless I 
specify Val_Schemes::Val_Always ? By the way I do have implemented my 
own ErrorHandler to catch the errors.

- do I need to call setExternalSchemaLocation() to set where to find my 
schema, or should it be set in the XML Schema, or does it need to be at 
both places ? or should I rather use noNamespaceSchemaLocation in the 
XML document ?

Thanks
Axelle.


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org