Not getting attribute from a xml file into asp

cowboy66

New Member
I have the following xml result from this link - https://api.eveonline.com/eve/CharacterID.xml.aspx?names=BorisKarlov\[code\]<eveapi version="2"><currentTime>2013-01-16 18:57:38</currentTime><result><rowset name="characters" key="characterID" columns="name,characterID"><row name="BorisKarlov" characterID="315363291"/></rowset></result><cachedUntil>2013-02-16 18:57:38</cachedUntil></eveapi>\[/code\]and I am trying to extract the characterID into asp. I am using the following code,\[code\]Set oXML = Server.CreateObject("Msxml2.DOMDocument.6.0")oXML.LoadXML("https://api.eveonline.com/eve/CharacterID.xml.aspx?names=BorisKarlov")Set oRoot = oXML.selectSingleNode("//result")For Each oNode In oRoot.childNodes response.Write oNode.Attributes.getNamedItem("characterID").TextNext Set oXML = Nothing \[/code\]All i keep getting is the following error:Microsoft VBScript runtime error '800a01a8'Object required: 'oRoot'.............I can only assume that Set oRoot = oXML.selectSingleNode("//result") is not actually generating any data and therefore throwing up the error in the next line.Can anyone please shed some light on my problem?
 
Back
Top