You need to format your xml properly. An & should actually be & So, format the xml properly when you pass it into this function.
If for some reason you cannot control the xml getting passed to you, you can turn off character checking by doing something like this:
string filePath = @"You file dirtest.xml"; XmlReaderSettings xrs = new XmlReaderSettings(); xrs.CheckCharacters = false; using (XmlReader reader = XmlReader.Create(filePath, xrs)) { while (reader.ReadToFollowing("Content")) {} } - See more at: http:
http://www.debugdotnet.com/xmlreader-read-special-unicode-use-xmlreadersettings-checkcharacters.html[
^]
However, the best option is to send in properly formed xml.