void WriteClassAttribute(string kind) { if (! string.IsNullOrEmpty(kind)) xmlTextWriter.WriteAttributeString("class", kind); }