private static string GetTagValue(CompositeTag Tags, string key) { String tempValue = null; TagElement tempTag = null; tempTag = Tags.FindTag(key); if (tempTag == null) { return(null); } else { return(tempTag.TryGetAttributeValueAt("value")); } }