private bool GetBoolValue(XElement library, string id, bool defaultValue) { string s = GetValue(library, id, defaultValue.ToString()); bool b; bool.TryParse(s, out b); return b; }