|
-
Dec 19th, 2002, 08:53 AM
#1
Thread Starter
Lively Member
xml Error
The system cannot locate the object specified
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<html>
<body>
<%
dim z
z=Request("MODE")
if (z<>"1")then
%>
<Form name=frm Action="http://localhost/asp/xml2/xml2.asp?MODE=1" method=post>
<%
txt="<h1>Traversing the node tree</h1>"
Response.write(txt)
dim xmlDoc
dim x
set xmlDoc=CreateObject("Msxml2.DOMDocument")
if(err.number<>0)then
Response.Write "error"
end if
xmlDoc.async="false"
xmlDoc.load("GetPriceList.xml")
if(err.number<>0)then
Response.Write "error"
end if
Response.Write xmlDoc.parseerror.reason
if(err.number<>0)then
Response.Write "error"
end if
Response.End
for each x in xmlDoc.documentElement.childNodes
Response.Write("<b>" & x.nodename & "</b>")
Response.Write(": ")
Response.Write(x.text)
Response.Write("<br>")
next
Response.End
end if
%>
</Form>
</body>
</html>
<P> </P>
</BODY>
</HTML>
what m i doing wrong ?
please help .
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
|
Click Here to Expand Forum to Full Width
|