when i built the project the following error happened:
To Change the encoding try this
var pi = xmldoc.createProcessingInstruction("xml", " version='1.0' encoding='UTF-8'"); xmldoc.appendChild(pi);
Check out the link below. http://msdn.microsoft.com/en-us/library/aa468560.aspx