•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 456,515 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,713 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1246 | Replies: 0
![]() |
•
•
Join Date: Sep 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I have been trying to get the child nodes out of a XML doc.
so far what i have is
one of my child nodes is
<page ishidden="true" pagename="Home" index="0" id="1">
so far what i have is
<%
'
' Create new XML reader object
Dim xmlDoc
Set xmlDoc = Server.CreateObject("Microsoft.XMLDOM")
' Load the specified XML file (returns XML output)
xmlDoc.load("http://xmlPath")
' Parse XML
if xmlDoc.parseError.errorcode <> 0 then
' oops error in xml
Response.Write("XML Error...<br>")
Response.write("<br>Error Code: ")
Response.write(xmlDoc.parseError.errorCode)
Response.write("<br>Error Reason: ")
Response.write(xmlDoc.parseError.reason)
Response.write("<br>Error Line: ")
Response.write(xmlDoc.parseError.line)
else
' get xml data
Set ElemList = xmlDoc.getElementsByTagName("page ")
For i=0 To (ElemList.length -1)
MsgBox ElemList.item(i).xml
Next
end if
/xmlParseContent.asp
%>one of my child nodes is
<page ishidden="true" pagename="Home" index="0" id="1">
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Programming FAQ - Updated 1/March/2005 (Computer Science and Software Design)
- learning php (PHP)
- How to Parse XML in ASP? (ASP)
- Asp+xml+mssql (ASP)
- selecting certain xml elements (RSS, Web Services and SOAP)
- Asp and XML error (ASP)
- Dynamic web page for multilingual (HTML and CSS)
Other Threads in the ASP Forum
- Previous Thread: ASP electronic exam project, problem when update data base
- Next Thread: what is record set in ASP?n why we use it?


Linear Mode