User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Sep 2007
Posts: 3
Reputation: moiseszaragoza is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
moiseszaragoza moiseszaragoza is offline Offline
Newbie Poster

ASP and XML

  #1  
Sep 26th, 2007
I have been trying to get the child nodes out of a XML doc.

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">
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP Forum

All times are GMT -4. The time now is 3:52 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC