Mega Code Archive
Removes the attribute node with the specified index from the element
using System;
using System.IO;
using System.Xml;
public class Sample
{
public static void Main()
{
XmlDocument doc = new XmlDocument();
doc.LoadXml("" +
"C#" +
"");
XmlElement root = doc.DocumentElement;
root.RemoveAttributeAt(0);
Console.WriteLine(doc.InnerXml);
}
}