从XML中获取一个字符串变量,要求输出变量时遇到句号即换行
<% // Response.Write(trim(rowsNode.childNodes(i).getAttribute("JS"))) // Dim textvalue=trim(rowsNode.childNodes(i).getAttribute("JS") trim(rowsNode.childNodes(i).getAttribute("JS"))=replace(trim(rowsNode.childNodes(i)).getAttribute("JS"),"。","<p>") Response.Write(trim(rowsNode.childNodes(i).getAttribute("JS")) %> |
<% sql6="SELECT * FROM PMIS.PUSER_JY_DWJS T1, PMIS.PUSER_EMS_REGISTAB T2 WHERE T1.KEY_NUM=T2.KEY_NUM AND T2.SFXS='1' and RQ=to_date('"& rq &"','yyyy-mm-dd') ORDER BY T2.xh" set pMdataSrv6 = Server.CreateObject("PMBizLogicSrv.PMBizLogicRemoteSrv") resultxml6=pMdataSrv6.GetXMLDataSet(sql6) set xmldom6= Server.CreateObject("Msxml2.DOMDocument") xmldom6.async=false xmldom6.loadXML(resultxml6) set rowsNode=xmldom6.documentElement.selectSingleNode("//DATAPACKET/ROWDATA") %> </p> <table width="1024" border="0"> <tr> <td width="191">八.记事</td> <td width="622"></td> <td width="98"> </td> <td width="95"> </td> </tr> </table> <table width="1024" border="1"> <tr> <% for i=0 to rowsNode.childNodes.length-1 %> <td> <% Response.Write(trim(rowsNode.childNodes(i).getAttribute("JS"))) %> <br></td> <% next %> </tr> </table> |