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?
 
 
 
 

Reply via email to