|
| |||||||||
| Tags: asp, file, programming, xml |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Reading XML file with ASP
Hello, I am working on the Asp.net. And now I want to know the details from which I will able to get to know program for Reading XML file with ASP. If you are having any kind of information from which I can able to get the solution then please provide that to me. I will be thankful to you. |
|
#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 05:31 PM |
| Reading zip file without opening it | ISAIAH | Software Development | 5 | 22-01-2010 11:40 AM |
| Reading a file in loop | Xmen | Software Development | 5 | 09-01-2010 02:23 PM |
| Reading file bit by bit | John Wilson | Software Development | 4 | 14-12-2009 01:49 PM |
| Reading from INI file to several textbox in VB.NET | MABON | Software Development | 5 | 04-11-2009 09:23 PM |