>Then I'd agree with Gregory. Don't bother to check whether it is populated - just set it to nothing. >Pity you don't know the case-sensitive attribute name. If you did you could just use:
var v = oXmlDocument.SelectSingleNode(tcNode);
> if (v == null) returnfalse;
>
> return v.Attributes.GetNamedItem(tcAttribute) !=null;
It is interesting. But, I need this method to be generic as it is called from various projects using various XML.