Classic ASP
Classic ASP
Load XML from Local FilePath
Demonstrates how to load XML from a local XML file.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set xml = Server.CreateObject("Chilkat.Xml")
' Pass either an absolute file path, or a file path relative from the current working directory of the caller.
success = xml.LoadXmlFile("qa_data/hamlet.xml")
If (success = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( xml.LastErrorText) & "</pre>"
Response.End
End If
Response.Write "<pre>" & Server.HTMLEncode( "Success.") & "</pre>"
%>
</body>
</html>