954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

ASP and XML

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...")
  	 Response.write("Error Code: ")
	 Response.write(xmlDoc.parseError.errorCode)
	 Response.write("Error Reason: ")
	 Response.write(xmlDoc.parseError.reason)
	 Response.write("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

moiseszaragoza
Newbie Poster
15 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You