如何获取xml里面的节点值,,有代码
<?xml version="1.0" encoding="utf-8" ?>
- <flag>
- <page>
<num>9</num>
</page>
- <row>
<num>17</num>
</row>
- <t_user>
<USERID>22</USERID>
<E_NUMBER>0001</E_NUMBER>
<LOGINNAME>17173</LOGINNAME>
<LOGINPWD>17173</LOGINPWD>
<U_NAME>17173</U_NAME>
<U_PHONE>17173</U_PHONE>
<U_EMAIL>qq@qq.com</U_EMAIL>
<ACC_HOLDER>17173</ACC_HOLDER>
<R_ID>0006</R_ID>
<STATE>1</STATE>
<REGTIME>2013-07-05T16:06:53+08:00</REGTIME>
<USVALID>2013-06-11T00:00:00+08:00</USVALID>
<S_PRJID>2,3</S_PRJID>
<T_PRJID>2</T_PRJID>
<R>1</R>
</t_user>
- <t_user>
<USERID>55</USERID>
<E_NUMBER>0002</E_NUMBER>
<LOGINNAME>web_nopower</LOGINNAME>
<LOGINPWD>web_nopower</LOGINPWD>
<U_NAME>web_nopower</U_NAME>
<U_PHONE>110</U_PHONE>
<U_EMAIL>web_nopower@qq.com</U_EMAIL>
<ACC_HOLDER>web_nopower</ACC_HOLDER>
<R_ID>00014</R_ID>
<STATE>0</STATE>
<REGTIME>2013-07-09T00:00:00+08:00</REGTIME>
<USVALID>2013-07-10T00:00:00+08:00</USVALID>
<S_PRJID>2</S_PRJID>
<T_PRJID>2</T_PRJID>
<R>2</R>
</t_user>
</flag>
xml里面有两张表,要分别获取这两张表里面的 <S_PRJID></S_PRJID> 和<T_PRJID></T_PRJID> 节点值得内容,然后取出来,修改
------解决方案--------------------