Solved

Null Reference Exception

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

Screen print of code attached.

sp
0
Comment
Question by:lrbrister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

690 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