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 zo...@ca.ibm.com on 2001/08/10 15:57:35 UTC
Re: SAX-Event Warning
Hi Maik,
In order to process a schema document, Xerces-J creates its own
DOMParser for that purpose. It registers its own ErrorHandler with that
parser to report the errors that are encountered in parsing the schema
document. The ErrorHandler the user's application registers is used only
to report errors encountered in parsing the original XML document itself.
The error message you see is probably from the ErrorHandler object
defined in the file org/apache/xerces/validators/common/XMLValidator.java
Thanks,
Henry
------------------------------------------------------------------------
Henry Zongaro XML Parsers development
IBM SWS Toronto Lab Tie Line 778-6044; Phone (416) 448-6044
mailto:zongaro@ca.ibm.com
Please respond to xerces-j-user@xml.apache.org
To: "xerces-j-user@xml.apache.org" <xe...@xml.apache.org>
cc:
Subject: SAX-Event Warning
Hello,
i am using the interface ErrorHandler in my xml-application and
implement all methods (warning, error, fatalError). Default i expect
that the parser will use these callbacks. But i was wrong ...
Then i am parsing a xml-document using a schema (which includes another
schema) and the references are not right i get following text:
[Warning] :0:0: File
"file:///d:/Projekte/Diplomarbeit/prog/validator-test/beispiel/xsd/project.xsd"
not found.
It seems to me like a use of the sax-callback "warning()" but it isn't
so. This text is not from my implemented method warning(). Does the
SAX-Parser call the method warning if a file could not be found? Or is
this case just a implemented feature when using schemas?
Maik