|
| ||||||||||
| Tags: asp, file, programming, xml |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Reading XML file with ASP
|
|
#2
| ||||
| ||||
| Re: Reading XML file with ASP
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> |
|
#3
| ||||
| ||||
| Re: Reading XML file with ASP
Hello, you want solution for the reading xml file with the help of the asp then it is quiet simple thing. You just need to make use of the Reading an XML file in ASP is very simple if you are using the xmldom object. For that you just need to create an xmldom object and that object need to be load the xml file that you want to read. And if you wan to load the xml file then it is necessary to to make use of the Load method which is present into the xmldoc object. |
|
#4
| |||
| |||
| Re: Reading XML file with ASP
Reading the Contents of XML File using XmlDocument class from the code below: Code: XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Server.MapPath("test.xml")); |
|
#5
| ||||
| ||||
| Re: Reading XML file with ASP
For reading the xml file from the asp you must need to use the following steps:
|
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Reading XML file with ASP" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading an XML file in Java | Chetna | Software Development | 7 | 13-07-2011 04:31 PM |
| Reading properties of a file | TechGate | Software Development | 5 | 14-02-2010 04:46 AM |
| Reading zip file without opening it | ISAIAH | Software Development | 5 | 22-01-2010 10:40 AM |
| Reading file bit by bit | John Wilson | Software Development | 4 | 14-12-2009 12:49 PM |
| Reading from INI file to several textbox in VB.NET | MABON | Software Development | 5 | 04-11-2009 08:23 PM |