2011-10-12 35 views
0

此声明不会更新有问题的节点的值!你能告诉我为什么会出现这种情况,或者我在这里做错了什么?!?NodeList值没有得到更新?

for (int i = 0; i < list.getLength(); i++) { 
    temp = list.item(i).toString(); 
    System.out.println(temp.substring(temp.indexOf("\"")+1, temp.lastIndexOf("\""))); 
    list.item(i).setNodeValue(temp.substring(temp.indexOf("\"")+1, temp.lastIndexOf("\""))); 
    System.out.println(list.item(i)); 
} 

感谢

回答