Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1414

DOMException instead of call to ErrorHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.7.0
    • None
    • x86_64-pc-linux-gnu

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            bsk Boris Kolpackov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: