¾È±Ô °øºÎ¹æ

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
   
  


 
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
¿äÇÑ    2022-03-04 22:20
»èÁ¦
test.xml
ÆÄÀÏÀº ¾î¶»°Ô µÇ´ÂÁö¿ä?
 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.