DEBUG help please? LoadXml error - ugh.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kathy Burke

    #1

    DEBUG help please? LoadXml error - ugh.

    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(va rXML)
    Dim Elem As XmlElement = xDoc.SelectSing leNode("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

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
Working...