Solved

Null Reference Exception

Posted on 2013-06-07
3
286 Views
Last Modified: 2013-06-07
Hey folks,
 How do I handle this?

Screen print of code attached.

sp
0
Comment
Question by:lrbrister
3 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39229508
check for nothing (on SelectSingleNode) before querying for FirstChild
0
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39229522
Hi,
check for Nothing on the SelectSingleNode.
Can you post the content of the text variable?
If you know that there should be the result node inside please check if you have any namespaces included in your XML string, Namespaces / Namespace manager have to be created/added beforehand.
HTH
Rainer
0
 

Author Closing Comment

by:lrbrister
ID: 39229545
Well...duh on me.

Ever notice how you can stare at something for an hour and not pick up the problem?

But someone else can in a minute flat?

I'm killing me
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now