I need some help to check if a node exist.
I can select the node like this
node["sa:name1"]["sa:name2"]["sa:name3"]
And this works fine but if the node doesn't exsist I get an error I have tried this
if(node.SelectSingleNode("/sa:name1/sa:name2/sa:name3") != null)
but this dident help this just makes a new error
An exception of type 'System.Xml.XPath.XPathException' occurred in System.Xml.dll but was not handled in user code
Additional information: Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function.