The problem is when a try to set an XmlAttribute value with the '>' char. It escape with the value '>', but '>' es valid because it is into an attribute value. Example:
var element = xmlDoc.CreateElement("Studient");
element.SetAttribute("Year", ">3");
xmlDoc.DocumentElement.AppendChild(element);
xmlDoc.Save(csprojPath);
In this case it produce <Studient Year=">3" xmlns="" />
. How can i get <Studient Year=">3" xmlns="" />
?