DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27000>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27000 External schema validation and InputSource Summary: External schema validation and InputSource Product: Xerces2-J Version: 2.6.1 Platform: PC OS/Version: Windows XP Status: NEW Severity: Major Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] There is no validation when I use InputSource to give the XML to the parser and set the property for the external schema. Only well-formedness is checked. However if I pass the XML with a filename it works fine. Example: String data = "<?xml ......" DOMParser parser = new DOMParser(); parser.setFeature(XercesConst.DYNAMIC_VALIDATION_FEATURE_ID, true); parser.setFeature(XercesConst.SCHEMA_VALIDATION_FEATURE_ID, true); parser.setProperty("http://apache.org/xml/properties/schema/external- noNamespaceSchemaLocation", "c:/path/file.xsd"); Reader reader = new StringReader(data); InputSource src = new InputSource(reader); parser.parse(src); This example does not do validation with the specified file. If I set the SystemId of the InputSource to any value, like this: src.setSystemId("bla"); the validation works correctly. Tested systems: Windows XP Windows 2000 Server Xerces 2.5.0, 2.6.0, 2.6.1 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
