This has been the cause of a lot of confusion when validating old documents
with newer versions of Xerces.
Standard error messages make it seem like the document is invalid -- this
will just add a WARNING message up-front.
[The attached patch is based on the "src" release of Xerces-1.4.0, since I
don't have access to CVS through my company's firewall.]
<<patch.txt>>
Regards,
Wayne M. Bradney
Wall Street Systems, Inc.
30 Broad Street, 24th Floor
New York, NY 10004
Phone: +1 (212) 401 8239
E-Mail: [EMAIL PROTECTED]
--- XMLValidator.java.orig Tue May 22 12:09:52 2001
+++ XMLValidator.java Fri Jun 22 13:57:05 2001
@@ -2524,6 +2524,12 @@
fXsiPrefix = nsPrefix;
seeXsi = true;
}
+ else if (attrValue.startsWith("http://www.w3.org/") &&
+ attrValue.endsWith("/XMLSchema-instance")) {
+
+reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR,
+ XMLMessages.SCHEMA_GENERIC_ERROR,
+ "WARNING: expected schema instance
+ref '" + SchemaSymbols.URI_XSI + "'");
+ }
if (!seeXsi) {
/***
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]