private void addDataProviderElement(LayerBase layer, XmlDocument doc, XmlElement layerElement)
{
XmlElement dataProvider = doc.CreateElement("data_provider");
layerElement.AppendChild(dataProvider);
addAttribute(doc, dataProvider, "registration_name", layer.DataProviderRegName);
XmlElement parameterList = doc.CreateElement("parameters");
dataProvider.AppendChild(parameterList);
foreach (string s in layer.DataProviderParameters.Keys)
{
XmlElement parameter = doc.CreateElement("parameter");
parameterList.AppendChild(parameter);
addAttribute(doc, parameter, "name", s);
addAttribute(doc, parameter, "value", layer.DataProviderParameters[s]);
}
}