protected static bool IsValid(string p_strCategoryPath)
{
if (!File.Exists(p_strCategoryPath))
return false;
try
{
XDocument docCategory = XDocument.Load(p_strCategoryPath);
}
catch (Exception e)
{
Trace.TraceError("Invalid Category File ({0}):", p_strCategoryPath);
Trace.Indent();
TraceUtil.TraceException(e);
Trace.Unindent();
return false;
}
return true;
}