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

NodeIterator

           Summary: NodeIterator
           Product: Xerces2-J
           Version: 2.0.0 [beta 4]
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Running a NodeIterator-based "find and patch" loop (strip whitespace off text 
nodes, remove the nodes if completely empty), I'm getting a null pointer 
exception when retrieving a returned node's parent. I haven't yet traced into 
NodeIterator to diagnose in detail, but this definitely isn't right.

I'll attach a sample example. Run it as "java keshlam4 <sample.xml". The 
comments, and a commented-out section of code, mention another unexpected 
result.  NodeIterator's intended respose to document mutation is fairly subtle, 
but I think that's also a bug, quite possibly the same bug.

(I hope it's a quick fix; this is intended to be sample code for an article. I 
can live without a NodeIterator illustration, but I'd rather not.)

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

Reply via email to