Jon Skeet
5/22/2008 8:52:00 AM
On May 22, 8:44 am, "Alan Mosley" <me@work> wrote:
> I have a console app, that creates a xml file, I need to escape the data
> before dumping it in the xml file.
How are you creating the file? If you're just explicitly writing each
part of it to disk, why not use all the built-in XML APIs, e.g. build
up an XmlDocument and save that. It's a lot simpler than working out
where to encode what, IMO.
Jon