51Testing软件测试论坛

标题: 关于关联的操作,我想取服务器返回的xml里面的数据 [打印本页]

作者: songyq521    时间: 2008-6-18 11:01
标题: 关于关联的操作,我想取服务器返回的xml里面的数据
<?xml version="1.0" encoding="utf-8"?>
<root><html><![CDATA[ <table bordercolor=DimGray border=1 class=dbnetgrid id=dbNetGridTable><colgroup id=dgcolgroup><col style='display:none;' ><col style='text-align:right;display:none;' ><col style='text-align:right;display:none;' ><col style='text-align:right;display:none;' ><col style='text-align:right;display:none;' ><col style='text-align:right;display:none;' ><col style='text-align:right;display:none;' ><col style='' ><col style='text-align:center;' ><col style='text-align:center;' ><col style='text-align:right;display:none;' ><col style='text-align:right;display:none;' ><col style='display:none;' ><col style='' ><col style='' ><col style='text-align:center;display:none;' ><col style='text-align:right;display:none;' ><col style='' ></colgroup><tr class=dbnetgridheading><td class=dbnetgridheading size="17" col="FLOWID" dataType="VARCHAR2"></td><td class=dbnetgridheading size="22" col="FLOWLOGID" dataType="NUMBER"></td><td class=dbnetgridheading size="22" col="CURNODE" dataType="NUMBER"></td><td class=dbnetgridheading size="22" col="FROMNODE" dataType="NUMBER"></td><td class=dbnetgridheading size="22" col="FROMNODELOGID" dataType="NUMBER"></td><td class=dbnetgridheading size="22" col="ROUTEID" dataType="NUMBER"></td><td class=dbnetgridheading size="22" col="DIRECTION" dataType="NUMBER"></td><td class=dbnetgridheading size="100" col="STEP_NAME" dataType="VARCHAR2"></td><td class=dbnetgridheading size="7" col="STARTTIME" dataType="DATE"></td><td class=dbnetgridheading size="7" col="ENDTIME" dataType="DATE"></td><td class=dbnetgridheading size="22" col="STATUS" dataType="NUMBER"></td><td class=dbnetgridheading size="22" col="ZHUBANID" dataType="NUMBER"></td><td class=dbnetgridheading size="100" col="SENDING" dataType="VARCHAR2"></td><td class=dbnetgridheading size="20" col="USERNAME" dataType="VARCHAR2"></td><td class=dbnetgridheading size="2000" col="OPINION" dataType="VARCHAR2"></td><td class=dbnetgridheading size="7" col="DATETIME" dataType="DATE"></td><td class=dbnetgridheading size="22" col="STATUS1" dataType="NUMBER"></td><td class=dbnetgridheading size="6" col="STATUS2" dataType="VARCHAR2"></td></tr><tr class=dbnetgrid id=" " ><td class=dbnetgrid>20080617132746234</td><td class=dbnetgrid><nobr>4705</td><td class=dbnetgrid><nobr>2</td><td class=dbnetgrid><nobr>1</td><td class=dbnetgrid><nobr>0</td><td class=dbnetgrid><nobr>1</td><td class=dbnetgrid><nobr>1</td><td class=dbnetgrid>涓撲笟璁″垝缂栧埗</td><td class=dbnetgrid><nobr>2008-06-17</td><td class=dbnetgrid><nobr>2008-06-17</td><td class=dbnetgrid><nobr>1</td><td class=dbnetgrid><nobr>4706</td><td class=dbnetgrid>10000000000000cfd60e4d-6073-47b3-87dd-d20ba56590f9</td><td class=dbnetgrid>鐢板畯蹇?/td><td class=dbnetgrid><nobr>璇峰鏍?</td><td class=dbnetgrid><nobr>2008-06-17</td><td class=dbnetgrid><nobr>1</td><td class=dbnetgrid><nobr>宸插鐞?/td></tr><tr class=dbnetgrid id=" " ><td class=dbnetgrid>20080617132746234</td><td class=dbnetgrid><nobr>4707</td><td class=dbnetgrid><nobr>4</td><td class=dbnetgrid><nobr>2</td><td class=dbnetgrid><nobr>4705</td><td class=dbnetgrid><nobr>5</td><td class=dbnetgrid><nobr>1</td><td class=dbnetgrid>璁″垝姹囨诲钩琛?/td><td class=dbnetgrid><nobr>2008-06-17</td><td class=dbnetgrid><nobr></td><td class=dbnetgrid><nobr>-1</td><td class=dbnetgrid><nobr></td><td class=dbnetgrid>10000000000000cfd60e4d-6073-47b3-87dd-d20ba56590f9</td><td class=dbnetgrid>鐢板畯蹇?/td><td class=dbnetgrid><nobr></td><td class=dbnetgrid><nobr></td><td class=dbnetgrid><nobr>-1</td><td class=dbnetgrid><nobr>澶勭悊涓?/td></tr></table>]]></html><pageCount><![CDATA[1]]></pageCount><rowCount><![CDATA[2]]></rowCount><pageNumber><![CDATA[1]]></pageNumber><sql><![CDATA[ select V_FLOW_LOG_DETAIL.FLOWID,V_FLOW_LOG_DETAIL.FLOWLOGID,V_FLOW_LOG_DETAIL.CURNODE,V_FLOW_LOG_DETAIL.FROMNODE,V_FLOW_LOG_DETAIL.FROMNODELOGID,V_FLOW_LOG_DETAIL.ROUTEID,V_FLOW_LOG_DETAIL.DIRECTION,V_FLOW_LOG_DETAIL.STEP_NAME,V_FLOW_LOG_DETAIL.STARTTIME,V_FLOW_LOG_DETAIL.ENDTIME,V_FLOW_LOG_DETAIL.STATUS,V_FLOW_LOG_DETAIL.ZHUBANID,V_FLOW_LOG_DETAIL.SENDING,V_FLOW_LOG_DETAIL.USERNAME,V_FLOW_LOG_DETAIL.OPINION,V_FLOW_LOG_DETAIL.DATETIME,V_FLOW_LOG_DETAIL.STATUS1,V_FLOW_LOG_DETAIL.STATUS2, ' ' as dbnetgrid_id from v_flow_log_detail where 1=1 and (flowid='20080617132746234') ]]></sql><primaryKeyColumnType /><primaryKeyColumn><![CDATA[  ]]></primaryKeyColumn><columns><![CDATA[FLOWID,FLOWLOGID,CURNODE,FROMNODE,FROMNODELOGID,ROUTEID,DIRECTION,STEP_NAME,STARTTIME,ENDTIME,STATUS,ZHUBANID,SENDING,USERNAME,OPINION,DATETIME,STATUS1,STATUS2 ]]></columns><expired><![CDATA[ false ]]></expired><licensedProcessors><![CDATA[ 0 ]]></licensedProcessors></root>


关于关联的操作,我想取服务器返回的xml里面的数据: 4707

我的关联:
        web_reg_save_param("flowlogid1",
                "LB=<td class=dbnetgrid><nobr>",
                "RB=</td><td class=dbnetgrid><nobr>4</td>",
                LAST);

关联不成功?!

在线等待
作者: 云层    时间: 2008-6-19 10:13
函数看起来没错,试着调整一下边界,有时候返回的内容和lr关联做的会有些不同
作者: cdq1010    时间: 2008-6-19 12:06
怀凝能不能从XML中取值




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2