You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Grant McDonald (JIRA)" <xe...@xml.apache.org> on 2006/11/17 12:18:39 UTC

[jira] Updated: (XERCESJ-1212) DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element

     [ http://issues.apache.org/jira/browse/XERCESJ-1212?page=all ]

Grant McDonald updated XERCESJ-1212:
------------------------------------

    Attachment: XERCESJ-1212.patch

Patch provided and tested to work correctly.

> DOMResultBuilder.startElement has a calls ElementImpl.setIdAttribute before setting the attribute onto the associated element
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1212
>                 URL: http://issues.apache.org/jira/browse/XERCESJ-1212
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: JAXP (javax.xml.validation)
>    Affects Versions: 2.7.0, 2.7.1, 2.8.0, 2.8.1
>         Environment: Windows XP SP2, Ubuntu Linux 6.06, Java 1.5.07
>            Reporter: Grant McDonald
>         Attachments: XERCESJ-1212.patch
>
>
> 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.

-- 
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: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org