Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1212

DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.0, 2.7.1, 2.8.0, 2.8.1
    • 2.9.0
    • None
    • Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07

    Description

      The code in ElementImpl.setIdAttribute contains a (reasonable) check to see whether the attribute's owner element is the same as the current element and if not a DOMException.NOT_FOUND_ERR is thrown. Since the DOMResultBuilder.startElement method contains two separate calls to the setIdAttribute method prior to setting the attribute onto the element this exception will always be thrown when encountering xsd:ID attrbutes.

      Attachments

        1. XERCESJ-1212.patch
          1 kB
          Grant Mcdonald

        Activity

          People

            mrglavas@ca.ibm.com Michael Glavassevich
            grantm Grant Mcdonald
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: