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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!