W3C has defined a set of illegal characters for use in XML . You can find info about the same here:
XML 1.0 | XML 1.1
Here is a function to remove these characters from a specified XML file:
using System;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
namespace XMLUtils
{
class Standards
{
[...]
Filed under: .net, C#, Code, Microsoft, Standards, Technical, XML | Tagged: Illegal Characters, W3c, XML | 18 Comments »