• R/O
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作業部屋の使い方を試しています。


Commit MetaInfo

Revision89 (tree)
Time2014-10-22 00:17:10
Authortuna_p

Log Message

(empty log message)

Change Summary

Incremental Difference

--- trunk/HtmlTest1/src/XmlTest1/XmlSearchData2main.java (revision 88)
+++ trunk/HtmlTest1/src/XmlTest1/XmlSearchData2main.java (revision 89)
@@ -14,7 +14,7 @@
1414 */
1515 public class XmlSearchData2main {
1616
17- XmlSearchDataRW2 xmlrw = new XmlSearchDataRW2();
17+ XmlSearchDataRW2 xmlrw;
1818
1919 /**
2020 * @param args the command line arguments
@@ -31,6 +31,7 @@
3131 }
3232
3333 public XmlSearchData2main() {
34+ xmlrw = new XmlSearchDataRW2();
3435 }
3536
3637 public void testsave(File file) {
--- trunk/HtmlTest1/src/XmlTest1/XmlSearchDataRW2.java (revision 88)
+++ trunk/HtmlTest1/src/XmlTest1/XmlSearchDataRW2.java (revision 89)
@@ -157,14 +157,15 @@
157157 }
158158
159159 void removeElement(String elementTagName) {
160- NodeList nodelist;
160+ int nodeSize;
161161 do {
162- nodelist = document.getElementsByTagName(elementTagName);
162+ NodeList nodelist = document.getElementsByTagName(elementTagName);
163+ nodeSize = nodelist.getLength();
163164 for(int i = 0; i < nodelist.getLength(); i++) {
164165 Node node = nodelist.item(i);
165166 root.removeChild(node);
166167 }
167- } while(nodelist != null);
168+ } while(nodeSize > 0);
168169 }
169170
170171 private void checkdoc() {