Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to get the href from XML 1

Status
Not open for further replies.

mts176

MIS
Apr 17, 2001
109
0
0
US
I am trying to parse an XML file with the following code
Code:
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.async = False
objXML.Load (Server.MapPath("imsmanifest.xml"))
Set objLst = objXML.getElementsByTagName("resource")

For i = 0 to (objLst.length - 1)
	response.write objLst.item(i).nodename & "  :  "
	response.write objLst.item(i).Text  & "<br><br>"
Next

I can get just about everything I want except the href. Here is the xml line I want to use.
Code:
	<resource identifier="CCTRAY" href="participant/cc_tray.asp" adlcp:scormType="sco" type="webcontent">

Any help is always appreciated.
 
[tt]objLst.item(i).getAttribute("href")[/tt]
 
Thanks tsuji this is what I needed. Have a star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top