null

  • Thread starter Thread starter mp
  • Start date Start date
M

mp

is this statement correct? if(nFld==null)



nFld = xmlDoc.SelectSingleNode(XPathFld);

if(nFld==null)



Thanks
 
Hi mp,

Indeed it is correct,

SelectSingleNode returns a Node, or if no node matches the search string
(XPathFld) it returns null.

if(nFld == null)
MessageBox.Show("No matching node found");
 
Back
Top