You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/01/09 20:56:24 UTC

DO NOT REPLY [Bug 5768] New: - "external-schemaLocation " not recognized.

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=5768>.
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=5768

"external-schemaLocation " not recognized.

           Summary: "external-schemaLocation " not recognized.
           Product: Xerces2-J
           Version: 2.0.0 [beta 4]
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: achille@us.ibm.com


org.apache.xerces.parsers.SAXParser does not recognize the 
property "http://apache.org/xml/properties/schema/external-schemaLocation" 
described at http://xml.apache.org/xerces2-j/properties.html.

The following code throws an org.xml.sax.SAXNotRecognizedException :

import javax.xml.parsers.SAXParserFactory;   
import javax.xml.parsers.SAXParser;
import org.xml.sax.SAXException;
import org.xml.sax.XMLReader;

class Test {
 
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
 XMLReader reader = parser.getXMLReader();


 reader.setProperty("http://apache.org/xml/properties/schema/external-
schemaLocation","http://examples.net http://examples.net/schema.xsd";


The output is : 
org.xml.sax.SAXNotRecognizedException: 
http://apache.org/xml/properties/schema/external-schemaLocation
	at org.apache.xerces.parsers.AbstractSAXParser.setProperty
(AbstractSAXParser.java:1628)
	at com.ibm.sketch.connection.ParserConnectionPool.main
(ParserConnectionPool.java:33)
Exception in thread "main"

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org