searching in xml
Hi all,
I have a xml file with this order:
<SCAN>
<SITE>OS</SITE>
<NAME>jack</NAME>
</SCAN>
<SCAN>
<SITE>OD</SITE>
<NAME>mary</NAME>
</SCAN>
I need to select the name of site OD
ex:
if SITE=OD then
=nome
else
end if
Here is my code, it works fine i just need to search
HTML Code:
<%
Option Explicit
Response.Buffer = True
Dim xml
Set xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = False
xml.load (Server.MapPath("page.xml"))
Dim title, heading, paragraph,paragraph2,paragraph3,paragraph4, testHTML
title = xml.documentElement.childNodes(0).text
heading = xml.documentElement.childNodes(1).text
paragraph = xml.documentElement.childNodes(2).text
paragraph2 = xml.documentElement.childNodes(3).text
paragraph3 = xml.documentElement.childNodes(4).text
paragraph4 = xml.documentElement.childNodes(5).text
testHTML = xml.documentElement.childNodes(6).text
Set xml = Nothing
%>
<html>
<head>
<title> <%= title %> </title>
</head>
<body>
<h3 align="center" > <%= heading %> </h3>
<p align="center" > <% = paragraph %> </p>
<p align="center" > <% = paragraph2 %> </p>
<p align="center" > <% = paragraph3 %> </p>
<p align="center" > <% = paragraph4 %> </p>
<div align="center" > <%= testHTML %> </div>
</body>
</html>
Determine the base URL to fetch protocol defines XML resources. Implementation offers determine http : URLs, and crawl a cocoon Apache instance published in the servile engine. Instead, may determine URI, for example: / documents / index.html, and made to crawl on a local Apache cocoon example only, either publish the applet, or in command line mode.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks