I am serializing List of objects List , and XmlSerializer generates attribute, I want rename it or rem
List
Change the following line from:
XmlSerializer serializer = new XmlSerializer(typeof(List));
To:
XmlRootAttribute root = new XmlRootAttribute("TestObjects"); XmlSerializer serializer = new XmlSerializer(typeof(List), root);
It should work.