ACTIVE SERVER PAGE > Server.CreateObject("Microsoft.XMLDOM") - xml ¿¹Á¦
µî·ÏÀÏ : 2017-07-04 15:24
Á¶È¸¼ö : 143,523
<%@ codepage="949" language="VBScript"%>
<% Response.ChaRset="euc-kr" %>
<%
items = Request("items")
br = ""
Response.Write(items)
Dim xmlDOM, myRec
Set xmlDOM = Server.CreateObject("Microsoft.XMLDOM")
xmlDOM.async = false
path = "test.xml"
xmlDOM.Load Server.MapPath(path)
Set objRoot = xmlDOM.documentElement
xmlStep = objRoot.getElementsByTagName("n170T14000J")(0).childNodes(2).text
totalPage = objRoot.getElementsByTagName(items)(0).childNodes(3).text
splitStepNumbers = Split( xmlStep, ",")
Response.Write(br)
Response.Write(xmlStep)
Response.Write(br)
Response.Write(totalPage)
Response.Write(br)
if splitStepNumbers(0) <> 0 then
'0 = step°¡ ÀÖÀ»¶§ ó¸®
for x=0 To ubound( splitStepNumbers,1) '¹è¿ÀÇ ±æÀÌ ¸¸Å
Response.Write(br)
Response.Write(splitStepNumbers(x))
next
else
'0 = step°¡ ¾øÀ»¶§ ó¸®
end if
Set objRoot = Nothing
Set xmlDOM = Nothing
%>
yes
4
4,1,2,3
9