I have created Windows application for writing XML file.
The code has given below
XmlSerializer serializer = new XmlSerializer(typeof(List<string>));
TextWriter textWriter = new StreamWriter("E:\\VSProjects\\XMLStudy\\XMLStudy\\XMLFileyu.xml");
and error occurring as "There was an error generating the XML document."
Please help me to solve this.............