C# Adding XML atribute in an EXISTING element



In my XML document i want to add two strings as atributes



XElement myele = new XElement("Custom_value");
myele.Add(new XAttribute("name", type));
myele.Add(new XAttribute("value", value));


How do I add these 2 atributes into the EXISTING Custom field.


No comments:

Post a Comment