protected static string GetNodeValueAttribute(XmlElement parentNode, string nodeName, string dflt)
{
XmlElement node = (XmlElement) parentNode.SelectSingleNode(nodeName);
string val;
if(null != node)
{
val = node.GetAttribute("value");
}
else
{
val = dflt;
}
return val;
}