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=5783>.
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=5783

Text with square brackets coalesced in the wrong order with DeferredDocumentImpl

           Summary: Text with square brackets coalesced in the wrong order
                    with DeferredDocumentImpl
           Product: Xerces2-J
           Version: 2.0.0 [beta 4]
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If I feed this XML into the parser (which uses DeferredDocumentImpl):

<element>config[1]</element>

I end up with this as the TEXT value when I go to get it using getNodeValue() 
on the text node:

]config[1

If I don't use the deferred stuff, it comes back correctly as

config[1]

DeferredDocumentImpl follows a different code path to coalesce text, which is 
where the problem might be. I think the parser starts off with two nodes due to 
special handling watching for ]].

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

Reply via email to