Hi Orla,

        First, such issues are better addressed at Xerces User mailing list.
         
> I have written a program to validate a document against a schema. However I 
would like to be able to validate the xml document even if it doesnt reference a 
schema. How do I tell the parser which schema to use?


Xerces provides a way to specify the  location of schema file externally using 
"externalSchemaLocation" and "external-noNamespaceSchemaLocation" properties.

For more details,
        http://xml.apache.org/xerces2-j/properties.html

Hope that helps,

Neeraj B.
Sun Microsystems, inc.






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to