Null Reference Exception

Hey folks,
 How do I handle this?

Screen print of code attached.

sp
Larry Bristersr. DeveloperAsked:
Who is Participating?
 
Éric MoreauConnect With a Mentor Senior .Net ConsultantCommented:
check for nothing (on SelectSingleNode) before querying for FirstChild
0
 
Rainer JeschorCommented:
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
 
Larry Bristersr. DeveloperAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.