6 namespace Mono.Documentation {
7 public class Normalizer {
9 public static void Run (string [] args)
12 Console.WriteLine ("normalize.exe <files>");
16 foreach (string arg in args) {
18 XmlDocument document = new XmlDocument ();
21 StreamWriter writer = new StreamWriter (arg, false, new UTF8Encoding (false));
22 document.Save (writer);
25 } catch (XmlException e) {
26 Console.WriteLine (arg + " is not a wellformed XML document.");
27 Console.WriteLine (e.Message);