DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16384>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16384

importNode fails on non-Xerces DOM document subtrees

           Summary: importNode fails on non-Xerces DOM document subtrees
           Product: Xerces2-J
           Version: 2.2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a DOM data structure of another DOM implementation, which I want to 
import into a Xerces document. However, the import fails with a NAMESPACE_ERR 
code. I checked the relevant code in AttrNsImpl and CoreDocumentImpl. It seems 
that the problem is with interned strings and the use of == comparisons. In 
AttrNsImpl.setName() method, the namespace parameter is interned but then the 
non-interned version of it is used and passed to other methods. This non-
interned version is compared using ==, and because of this importNode() fails 
(in method checkDOMNS().

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to