Hi,
I want to parse an XML file using ASP and I have no idea where to start.
Does anyone have any pointers or know of any tutorials that would get me started,
'Create instance of XML document object
Set oDocument = Server.CreateObject("MSXML2.FreeThreadedDOMDocument.3.0"
If oDocument is Nothing Then
Response.Write "oDocument object not created<br>"
Else
If Err Then
Response.Write "XML DomDocument Object Creation Error - <BR>"
Response.write Err.Description
Else
'Load up the XML document into the XML object
oDocument.async = False
bLoaded = oDocument.load(Server.MapPath(sXMLFile))
If (bLoaded = False) Then
'Failed to parse so write out an error
Else
'Everything worked, do what you want with it
End If
End If
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.