private static string GetAttValue(IAttributes atts, string name) { string value; int indx = atts.GetIndex(name); if (indx >= 0) value = atts.GetValue(indx); else value = null; return value; }