Parsing a file just displays the full file..

Discussion in 'Web Design & Coding' started by GT2000, Sep 29, 2002.

  1. GT2000

    GT2000 Guest

    This is new, just started happening today while trying to sort out some other problems..

    For example, this code right here..

       Set FSO = CreateObject("Scripting.FileSystemObject") 
       path = "C:\Program Files\CoolMon\coolmon.xml" 
       Set file = FSO.GetFile(path) 
       Set XMLFile = file.OpenAsTextStream(1,-2) 
       Set objXML = CreateObject("MSXML.DOMDocument") 
       Uptime = objXML.getElementsByTagName("Uptime")(0).firstChild.nodeValue 
       Temperature_2 = objXML.getElementsByTagName("Temperature_2")(0).firstChild.nodeValue
       response.write "uptime: " & Left(Uptime,Len(Uptime)-9)
    is only supposed to display my computer uptime from the coolmon.xml file, however, when I go to it displays the whole xml file as if I had just browsed to and double-clicked it. Anyone heard of this happening before?
  2. GT2000

    GT2000 Guest

    BTW, this happens with php/js parse attempts as well..