logo       
Google Custom Search
    AddThis Social Bookmark Button

SchemaFactory - check of non-valid imports: msg#00047

Subject: SchemaFactory - check of non-valid imports
Hi,

When using SchemaFactory to load and check a schema file, it seems to
ignore if the schema imports other schemas that doesn't exist. If for
instance there's a typo in the import line in the schema: <import
schemaLocation="file.xsdd" namespace=...>, where the "file.xsdd"
should have been written as "file.xsd", this seems to be ignored.
Sure, it generates an error when trying to process elements in the
schema deriving from the (wrongly spelled) imported schema file, but
it's not the actual misspelling in the import that raises the error.
Is there an option to set somewhere that causes SchemaFactory to throw
an exception if the imported schema does not exist? or is it necessary
to write your own LSResourceResolver implementation that manually
checks if the imported files exist?

Thanks,
Simon



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>