K
Kathy Burke
Hi, I'm using
Dim xDoc as XmlDocument
Dim xElem As xmlElement = xDoc("xpath")
I then assign a variable to a value from the result node:
Dim r As String = xElem.Attributes.GetNamedItem("name").Value
This works fine unless there is no node returned, then I get an "object
reference not set" error.
How do you test for an empty node return?
Thanks again for all the help.
Kathy
Dim xDoc as XmlDocument
Dim xElem As xmlElement = xDoc("xpath")
I then assign a variable to a value from the result node:
Dim r As String = xElem.Attributes.GetNamedItem("name").Value
This works fine unless there is no node returned, then I get an "object
reference not set" error.
How do you test for an empty node return?
Thanks again for all the help.
Kathy