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

spurious indication of attribute name duplication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • 2.4.0
    • None
    • Non-Validating Parser
    • None
    • Operating System: Windows NT/2K
      Platform: PC
    • 26344

    Description

      I stumbled upon a strange error in one of my files. It reports that one of my attributes is duplicated, though it clearly isn't. I've narrowed the two conflicting attributes down to the specific cases which are conflicting.

      Here is the smallest file which causes the error:

      <?xml version="1.0" encoding="iso-8859-1" ?>
      <doc RANDOMIZE_CHOICES="FALSE" TARGET_CATEGORY="some stuff">
      </doc>

      The order of the attributes only affects the name of the attribute reported in the conflict. The parser throws a SAXException with message

      "The attribute 'TARGET_CATEGORY' is already used in element 'doc'

      I suspect this is a result of changes in some hashing routine since 2.3.0 because the error does not occur in the 2.3.0 release.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xercesc@mizerai.com Tim Burke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: