[runtime] Disable some tests in full-aot mode which cannot be AOTed because of type...
[mono.git] / mcs / tools / mdoc / Mono.Documentation / normalize.cs
1 using System;
2 using System.IO;
3 using System.Text;
4 using System.Xml;
5
6 namespace Mono.Documentation {
7     public class Normalizer {
8         
9         public static void Run (string [] args)
10         {
11                 if (args == null) {
12                         Console.WriteLine ("normalize.exe <files>");
13                         Environment.Exit (0);
14                 }
15
16                 foreach (string arg in args) {
17                         
18                         XmlDocument document = new XmlDocument ();
19                         try {
20                                 document.Load (arg);
21                                 StreamWriter writer = new StreamWriter (arg, false, new UTF8Encoding (false));
22                                 document.Save (writer);
23                                 writer.Close ();
24                                 
25                         } catch (XmlException e) {
26                                 Console.WriteLine (arg + " is not a wellformed XML document.");
27                                 Console.WriteLine (e.Message);
28                         }
29                 }
30         }
31     }
32 }