Hi All,

 

Would really appreciate if you can advise in solving the problem.

 

We have 2 schema’s (.xsd’s). We plan to put these schema’s into Jar file. Hence our program is expected to read these schema’s from jar file. Hence we wrote our custom “EntityResolver” - “MyEntityResolver”.

 

Problem:

 

  1. 2 schema’s are Schema A, Schema B to be validated against respective xmlA and xmlB.
  2. Schema B imports Schema A

 

"MyEntityResolver" gets invoked when we use Schema A for xmlA validation. It  is consulted even when we use Schema B for xmlB validation.

But in second case, parser is unable to find the definitions in Schema A (As Schema A is imported in Schema B).

 

Please guide me to solve this. If there are any examples please email.

 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Reply via email to