看板 java 關於我們 聯絡資訊
<Face ID="1" Dependency_relation_type="3" Type="1"> : : </Face> 我想抓取 Dependency_relation_type 它的值(3) 下面是我寫的程式碼 Attr testAttribute = theParentElement.getAttributeNode("Dependency_relation_ty int AttrNum; AttrNum =Integer.parseInt(testAttribute.getNodeValue()); ↑ Tomcat出現了java.lang.NullPointerException 對於這部分我是第一次去寫 找了很多書還是搞不懂原因 也不太知道該怎麼解決 懇請高手們稍微指點我一下迷津>"< 謝謝~! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.184.232.34