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 4091952
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:25:51+00:00 2026-05-20T19:25:51+00:00

So I have this pretty large XML file (40MB) that I’ll have to repeatedly

  • 0

So I have this pretty large XML file (40MB) that I’ll have to repeatedly search. I’ve been schooled on the benefits of DOMDocument usage with XPath, and I thought I had it right, but I’m getting the Obj Var Not Set nonsense.

Here’s the initial load…I think its loading because it delays an appropriate length of time for a 40mb file & returns no error.

Dim someElement As IXMLDOMNode
Dim xmlDoc As Object
Set xmlDoc = CreateObject("Msxml2.DOMDocument.6.0")

'<-thats a valid file name lookup
xmlDoc.Load DLookup("gsgtver", "Eramdat", "EramID = 1") 

So heres where it gets dicey. I need a IXMLDOMNode to read the parced xmlDoc object. I checked the MsXml 6.0 reference library, and I’m getting the var type when I dim (you know, the list of types that fill in for us noobs).
And after I have a IXMLDOMNode set I get the list of methods (like “.text”) when I try to assign, but I’m bangin on this error ….. could be a bum xpath string (although I pretty much verbatim stole it from the xpath tutorial).

sNodeName = "/Fix_Records/FixRecord/FixID[1]/Latitude"
Set someElement = xmlDoc.SelectSingleNode(sNodeName)

'yes, I dimmed xBuffer as a string up above
sBuffer = someElement.text 

Incedently, I REALLY wanna do a “FixID = ‘mystring’ ” sorta thing, but I’m doing element 1 just to get it workin.
And here’s the top of the xml file:

<Fix_Records xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:noNamespaceSchemaLocation="Fix.xsd"> 
 <!-- ******************************************************** -->
 <!-- Local SITE ID        : ZAB                               -->
 <!-- Local Release Version: a082a210                          -->
 <!-- NASD/NADR Version    : z084b210                          -->
 <!-- Date                 : 02-03-2011 19:02:56               -->
 <!-- ******************************************************** -->

    <FixRecord>
      <FixId>00BTR</FixId>
      <IcaoCode>K7</IcaoCode>
      <FixType>WAYPOINT</FixType>
      <FixName>BTR055100</FixName>
      <FixinUs>true</FixinUs>
      <IsNational>true</IsNational>
      <HighPowerVor>false</HighPowerVor>
      <DPositionMapData>false</DPositionMapData>
      <Latitude>31170205N</Latitude>
      <Longitude>089353453W</Longitude>
      <AngularCorr>-0.010472</AngularCorr>
      <XSpherical>0.006082693951808</XSpherical>
      <YSpherical>-0.85612436871425</YSpherical>
      <ZSpherical>0.516734038096893</ZSpherical>
    </FixRecord>
    <FixRecord>
      <FixId>00N10</FixId>
      <IcaoCode>MM</IcaoCode>

Thank you…..you smart people rock.

  • 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-05-20T19:25:52+00:00Added an answer on May 20, 2026 at 7:25 pm

    You have a case sensitive problem – you’re looking for FixID, you’ve actually got FixId.
    When you try and access its text you throw an exception as you have no actual object.

    EDIT: as pointed out by Jean-François Corbett, your XPath is also wrong. Here is an updated Xpath solving both problems:

    "/Fix_Records/FixRecord[FixId='Id you want']/Latitude"
    

    You may also want to test if you’ve got a node to access, see the answer below for some tips.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been creating this pretty large web application for sometime and have been updating
I have been developing a library that is getting pretty large, and now I
That sounds pretty odd but i have this cod and i need to convert
This is pretty weird. I have my Profiler open and it obviously shows that
I have an application that stores large amount of files (XML and binary) in
I have a large (1MB+) XML file, and I'm trying to create an object
So i have this pretty large project and i have to create database schemas
I have a pretty sizeable object graph that I have serialized to a file
I have a Java application that parses a large xml schema (.xsd) using Xerces
I have a pretty large directory /var/www/ on my linux Ubuntu server. In that

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.