DEBUG help please? LoadXml error - ugh.

K

Kathy Burke

Hi, I know EVERYONE says this, but I'm using code that works fine in
another form but I get an error on a new one.

In my web page, I have imported the usual system references, System.XML,
etc., then I retrieve an xml string from a db and set if as varXML. I
then do

Dim xDoc As XmlDocument
xDoc.LoadXML(varXML)
Dim Elem As XmlElement = xDoc.SelectSingleNode("my xpath")

In debug, I can see the varXML string is there and correct (exactly as
used elsewhere).

The error is the dreaded "object not set to an instance of the object".

Could someone please tell me how I can debug this further? Where else do
I look?

Thank you.
Kathy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top