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
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