Тема: NodeList
В мене jTree  на основі xml файла . 
користувач виділяє вузол в jTree  і відповідний вузол xml  буде  в nodeTreeSelect  , 
Node nodeTreeSelect =  doc.getElementsByTagName( getSelectNode().getNodeName() ).item(0);
 потім в nodeListChilds   добавляємо дітей 
NodeList nodeListChilds = nodeTreeSelect.getChildNodes();потім перший раз перевіряєм розмір nodeListChilds  .  буде наприклад 3 (як у мене )
System.out.println("for  nodeListChilds.getLength();  "+ nodeListChilds.getLength());тепер змінюєм текстове значення nodeTreeSelect  . Метод setTextContent видаляє всі дочірні вузли .
nodeTreeSelect.setTextContent((String) objStr);після чого знову перевіряєм розмір nodeListChilds    тут вже буде  1
 System.out.println("for  nodeListChilds.getLength();  "+ nodeListChilds.getLength());Чому в nodeListChilds два різні значення коли діти до нього добавились лише один раз до визову метода setTextContent ?
