You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Vikrant sutar <vi...@yahoo.com> on 2004/07/19 06:47:16 UTC
Error while Schema IMPORT - with Custom EntityResolver - All Schema's in Jar file
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:
2 schema�s are Schema A, Schema B to be validated against respective xmlA and xmlB.
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!