| | |
ASP and XML
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2007
Posts: 15
Reputation:
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
ASP Syntax (Toggle Plain Text)
<% ' ' 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">
![]() |
Similar Threads
- Programming FAQ - Updated 1/March/2005 (Computer Science)
- 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?
| Thread Tools | Search this Thread |
Tag cloud for ASP
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





