Hello, I have the code below which will be helpful to you for getting the details about the reading xml file with asp:
Code:
<%
Option Explicit
Response.Buffer = True
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
xml.load (Server.MapPath("page.xml"))
Dim name, subname, data, check
name = xml.documentElement.childNodes(0).text
subname = xml.documentElement.childNodes(1).text
data = xml.documentElement.childNodes(2).text
check = xml.documentElement.childNodes(3).text
Set xml = Nothing
%>
<html>
<head>
<name><%= name %></name>
</head>
<body>
<h3 align="center"><%= subname %></h3>
<p align="center"><% = data %></p>
<div align="center"><%= check %></div>
</body>
</html>
Bookmarks