views:

52

answers:

1

Hi,

I have an XElement object which has a number of attributes and I simply want to add another attribute to the element.

How do I do this?

Thanks,

Matt.

+2  A: 
xElement.Add(new XAttribute("Foo", "Bar"));
Robin Day