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 bu...@apache.org on 2002/03/05 22:13:26 UTC
DO NOT REPLY [Bug 6888] New: -
NodeIterator
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: xerces-j-dev@xml.apache.org
ReportedBy: keshlam@us.ibm.com
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org