|
I'm using the DOM3 version of xerces, and am doing
the following:
NodeList els=
type.getChildNodes();
for (int i = 0; i < els.getLength(); i++) type.removeChild(els.item(i)); I still want to hold onto these child nodes, the
problem is that xerces implements NodeList using ElementNSImpl in this
case,
and further, the Element that is returned via
getChildNodes, is the node itself, so in the above,
els == type
because of this, 'els' will be empty at the end of
this method.
This would seem to be a mistake to me,
no?
|
- Re: Odd Behavior for getChildNodes() ? Dave Brosius
- Re: Odd Behavior for getChildNodes() ? Neil Delima
- Re: Odd Behavior for getChildNodes() ? Dave Brosius
- Re: Odd Behavior for getChildNodes() ? Joseph Kesselman
- Re: Odd Behavior for getChildNodes() ? dbrosius
- Re: Odd Behavior for getChildNodes() ? Joseph Kesselman
