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!?
Vote for the stars of Yahoo!'s next ad campaign!

Reply via email to