2011-10-12 77 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)); 
} 

感謝

回答