why do I get here the error message: Doubled Attribute? I guess this means, there are more than one Attributes with the same name and value.
XElement XMLRun = new XElement("RessourceAttribute");
foreach (var kvp in Run) //kvp = KeyValuePair<string,string> and Run = List<KeyValuePair<string, string>>
{
XAttribute aKey = new XAttribute("name", kvp.Key);
XAttribute aValue = new XAttribute("value", kvp.Value);
XMLRun.Add(aKey, aValue);
}
XMLE.Add(XMLRun);
On every step there should be this two new Attributes generated and then added on the parent node. I am pretty sure the problem is here, because the Attributenames must be different. The error occurs on my Enterprise Architect AddIn. Is there a possibility that the new generated Attributes have different names?