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

Attribute parameter scope limited to ContentHandler.startElement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 2.2.1
    • None
    • None
    • Operating System: All
      Platform: All
    • 16668

    Description

      During the startElement() method in a ContentHandler implementation, I store a
      reference to the Attributes parameter and later attempt to use it in
      endElement(). What I experience in endElement(), however, is that the
      variable no longer contains the same data. It now contains data of another
      element.

      The javadocs do not state that the Attributes parameter is scoped to only
      startElement(). Therefore, I would expect to be able to mantain a reference to
      it and use it later.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sdgoldst@mailandnews.com Scott Goldstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: