private void addAutoTitleSettingsElement(FeatureLayer layer, XmlDocument doc, XmlElement layerElement)
{
if (layer.AutoTitleSettings != null)
{
XmlElement autoTitlesSettings = doc.CreateElement("auto_titles");
layerElement.AppendChild(autoTitlesSettings);
addAttribute(doc, autoTitlesSettings, "attribute_name", layer.AutoTitleSettings.AttributeName);
addAttribute(doc, autoTitlesSettings, "attribute_index", layer.AutoTitleSettings.AttributeIndex.ToString(CultureInfo.InvariantCulture));
}
}