public class Field
{
    [XmlAttribute(AttributeName = "id")]
    public string Id { get; set; }
    [XmlText]
    public string Text { get; set; }
    public bool IsABooleanProperty => !string.IsNullOrEmpty(Text) &&
        (
            Text.ToLower() == "yes" || 
            Text.ToLower() == "no" || 
            Text.ToLower() == "true" ||
            Text.ToLower() == "false"
        );
}