how to load the xml document and parse the file

admin

Administrator
Staff member
i am trying xml for the first time and i tried the followingset xmlDoc = Server.CreateObject("Microsoft.XMLDOM")xmlDoc.async = falsexmlDoc.load("First.xml")Dim rootDim xmlDocDim child'Set root to the XML document's root element, COLLECTION:Set root = xmlDoc.documentElement'Walk from the root to each of its child nodes:For Each child In root.childNodesResponse.Write child.text & "<br>"Nextbut i am getting the error :Microsoft VBScript runtime error '800a01a8'Object requiredi have ie5 and iis4 on win NT 4.0 also i have installed the latest microsoftdom.please respond.thanksshiva
 
Back
Top