Merge pull request #463 from strawd/concurrent-requests
[mono.git] / mcs / tools / mono-xmltool / xmltool.cs
index 918e4a2d48d3cf4a113bfa63f40b3ee904f0dad7..174176f678888392853dc3fdfc604e0a58c662c0 100644 (file)
@@ -5,7 +5,7 @@ using System.Xml;
 using System.Xml.Schema;
 using System.Xml.Xsl;
 using System.Xml.XPath;
-#if !TARGET_JVM && !MSNET
+#if !MSNET
 using Commons.Xml.Nvdl;
 using Commons.Xml.Relaxng;
 using Commons.Xml.Relaxng.Rnc;
@@ -63,7 +63,7 @@ environment variable that affects behavior:
                        case "--help":
                                Usage ();
                                return;
-#if !TARGET_JVM && !MSNET
+#if !MSNET
                        case "--validate":
                                ValidateAuto (args);
                                return;
@@ -95,7 +95,7 @@ environment variable that affects behavior:
                        }
                }
 
-#if !TARGET_JVM && !MSNET
+#if !MSNET
                static void ValidateAuto (string [] args)
                {
                        if (args.Length < 1) {
@@ -235,7 +235,7 @@ environment variable that affects behavior:
                        r.WhitespaceHandling = WhitespaceHandling.Significant;
                        XmlTextWriter w = null;
                        if (args.Length > 2)
-                               w = new XmlTextWriter (args [1], Encoding.UTF8);
+                               w = new XmlTextWriter (args [2], Encoding.UTF8);
                        else
                                w = new XmlTextWriter (Console.Out);
                        w.Formatting = Formatting.Indented;