Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9145069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:25:21+00:00 2026-06-17T10:25:21+00:00

I have the following xml result from this link – https://api.eveonline.com/eve/CharacterID.xml.aspx?names=BorisKarlov <eveapi version=2> <currentTime>2013-01-16

  • 0

I have the following xml result from this link – https://api.eveonline.com/eve/CharacterID.xml.aspx?names=BorisKarlov

<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>

and I am trying to extract the characterID into asp. I am using the following 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").Text
Next 

Set oXML = Nothing 

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:25:23+00:00Added an answer on June 17, 2026 at 10:25 am

    You have a few problems there.

    1. loadXML() is for loading a block of XML as a string, not fetching from a remote server; for that, you need to use load()
    2. when loading from a server, you need to tell it to use the ServerXMLHTTP component, and set async to false so that it waits until loaded before executing the rest of your script.
    3. when I tried loading that XML, I got an encoding error; you will need to resolve that one way or another
    4. when I loaded the XML directly from a string, it wouldn’t parse because there is a script element containing non-XML content; that needs to be contained within a CDATA section
    5. your XPath query is to //result, but you actually need it to be //result/rowset

    This code should work once you resolve issues 3 and 4 above:

    Set oXML = Server.CreateObject("Msxml2.DOMDocument.6.0")
    oXML.async = False
    oXML.setProperty "ServerHTTPRequest", true
    
    oXML.Load("https://api.eveonline.com/eve/CharacterID.xml.aspx?names=BorisKarlov")
    
    If oXML.parseError.errorCode <> 0 Then
        Response.Write "<p>XML parse error: " & Server.HTMLEncode(oXML.parseError.reason) & "</p>"
    Else
        Set oRoot = oXML.selectSingleNode("//result/rowset")
    
        If oRoot Is Nothing Then
            response.write "Nothing!"
            response.end
        End If
    
        For Each oNode In oRoot.childNodes
            response.Write oNode.Attributes.getNamedItem("characterID").Text
        Next
    End If
    
    Set oXML = Nothing
    

    Edit: to get around the problem #3, and oddly also #4 (don’t know why!), use this snippet to load the XML instead. For some reason, I think the code above isn’t handling the gzip compressed stream correctly, but this code below does.

    Set oXML = Server.CreateObject("Msxml2.DOMDocument.6.0")
    Set xh = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0")
    xh.open "GET", "https://api.eveonline.com/eve/CharacterID.xml.aspx?names=BorisKarlov", False
    xh.send
    xml = xh.responseText
    oXML.LoadXML xml
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following XML: <Result ID=1,New xmlns=http://schemas.microsoft.com/sharepoint/soap/> <ErrorCode>0x00000000</ErrorCode> <ID /> <z:row ows_ID=6 />
I have the following XML: <iq xmlns=jabber:client to=39850777771287777738178727@guest.google.com/agsXMPP xml:lang=en id=sub23 from=search.google.com type=result> <pubsub xmlns=http://jabber.org/protocol/pubsub>
I have the following node I need to parse using XSLT 1.0 from xml
I am new to Ajax and have been following a tutorial from JQuery.com. I
I have the following snippet of XML: <?xml version=1.0 encoding=UTF-8?> <Envelope xmlns=http://schemas.microsoft.com/dynamics/2008/01/documents/Message> <Header> <MessageId>{11EA62F5-543A-4483-B216-91E526AE2319}</MessageId>
I have the following XML: <?xml version=1.0 encoding=UTF-8 standalone=yes?> <application xmlns=http://research.sun.com/wadl/2006/10> <doc xmlns:jersey=http://jersey.dev.java.net/ jersey:generatedBy=Jersey:
I have the following Xml structure: <sitemapindex xmlns=http://www.sitemaps.org/schemas/sitemap/0.9> <sitemap> <loc>http://www.example.com/</loc> <lastmod>2011-11-27T08:34:46+00:00</lastmod> </sitemap> <sitemap> <loc>http://www.example.com/123</loc>
I have the following code nodes = data.Descendants(XName.Get({http://schemas.microsoft.com/LiveSearch/2008/04/XML/web}Results)).Nodes(); System.Collections.Generic.IEnumerable<Result> res = new List<Result>(); if
If I have the following struts.xml config: <action name=input> <result>/jsp/input.jsp</result> </action> <action name=result> <result>/jsp/result.jsp</result>
I have the following XML from which I am trying to generate HTML files.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.