On 18/11/2010 12:03, Alberto Massari wrote:
Hi Mathieu,
the proper way of handling this kind of configuration is by registering a resource resolver that, when asked for "schema2.xsd", returns the correct MemBufInputSource. Otherwise you could fix your code by parsing first the schema_2 and then the schema_1 buffer, so that schema_1 can find schema_2 already loaded in the grammar cache.


Thank you for your help Alberto,

When parsing first schema_2 and then schema_1 I get this error upon validation : no declaration found for element 'element' Therefore I was under the impression that the first parsed schema was supposed to contain the definition for the root element ?

I'll look into registering a custom resource resolver, thanks for pointing that out.

MAT.

Reply via email to