I wrote a function that builds an XML string based on the data saved in my application. Next up, this string should be written to an actual XML file, so it can be used. This file is then to be used in an HTML web application to feed data. I'm using the following snippet of code to do just that:
xmlDoc.Save("exercise.xml");
Easy enough, but there's a small catch. My XML file won't work properly in Firefox, because it considers white space as a childNode. Rewriting my entire web application is pretty much a no go, as it'd be too much work. I'd rather just be able to save my XML string to an XML file in a non-formatted way, since I've tested and confirmed that this works in just about every conceivable browser. The string itself doesn't contain any carriage returns or tabs, so the Save()-method probably adds it automatically. Any way to prevent it from doing that, or another easy way to circumvent this?