I have a console app, that creates a xml file, I need to escape the data
before dumping it in the xml file.
I would use Server.HTMLEncode if it was ASP.NET.
I tried System.Xml.XmlConvert.EncodeName("a&b")
this gives me a_x0026_b I was exspecting a&b
Maybe thios is ok. the xml file is a google sitemap, it need to be read by
google bot, will it read a_x0026_b as a&b I dont know.
any help, ideas?