DOMException instead of call to ErrorHandler
--------------------------------------------
Key: XERCESC-1414
URL: http://issues.apache.org/jira/browse/XERCESC-1414
Project: Xerces-C++
Type: Bug
Components: Validating Parser (Schema) (Xerces 1.5 or up only)
Versions: 2.6.0
Environment: x86_64-pc-linux-gnu
Reporter: Boris Kolpackov
Consider the following XML Schema
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd"
xmlns:test="http://www.example.org/test"
targetNamespace="http://www.example.org/test">
<xsd::element name="test2" type="xsd:int"/>
</xsd:schema>
Note '::' in element declaration. When I feed this file to loadGrammar()
I get DOMException with error code 14 and message that reads:
"An attempt is made to create or change an object in a way which is incorrect
with regard to namespaces"
Should this error be rather dealt with via ErrorHandler (with file, position,
etc.)? That's the impression I got from reading comments in DOMException.hpp.
thanks,
-boris
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]