Michael,

Registering an entity resolver does not solve the problem since the namespace of the schema differs from the namespace of the instance. I get the following error:

Parse Error at line 14 column 20: TargetNamespace.1: Expecting namespace 'http://java.sun.com/xml/
ns/javaee', but the target namespace of the schema document is 'http://java.sun.com/xml/ns/j2ee'.


If I set setNamespaceAware(false), then it does not call the entityresolver.


-Uma


Michael Glavassevich wrote:
[EMAIL PROTECTED] wrote on 06/28/2006 03:41:38 PM:

  
Hi,

Is it possible to force validation against a specific local schema 
regardless of the namespace/schemalocation in the instance document?
    

Yes. Register an EntityResolver which returns your local schema instead of 
what was specified by the schemaLocation hint.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]


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


  

Reply via email to