Author: atsushi
Date: 2006-11-07 13:11:37 -0500 (Tue, 07 Nov 2006)
New Revision: 67471

Modified:
   trunk/mcs/tools/mono-xmltool/ChangeLog
   trunk/mcs/tools/mono-xmltool/xmltool.cs
Log:
2006-11-07  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * xmltool.cs : compile schema to validate the schema itself. It is
          useful when there is no instance document to valiate.



Modified: trunk/mcs/tools/mono-xmltool/ChangeLog
===================================================================
--- trunk/mcs/tools/mono-xmltool/ChangeLog      2006-11-07 17:58:35 UTC (rev 
67470)
+++ trunk/mcs/tools/mono-xmltool/ChangeLog      2006-11-07 18:11:37 UTC (rev 
67471)
@@ -1,3 +1,8 @@
+2006-11-07  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * xmltool.cs : compile schema to validate the schema itself. It is
+         useful when there is no instance document to valiate.
+
 2006-09-06  Andrew Skiba  <[EMAIL PROTECTED]>
 
        * XmlTool20.csproj, XmlTool20.sln: added solution for Net 2.0

Modified: trunk/mcs/tools/mono-xmltool/xmltool.cs
===================================================================
--- trunk/mcs/tools/mono-xmltool/xmltool.cs     2006-11-07 17:58:35 UTC (rev 
67470)
+++ trunk/mcs/tools/mono-xmltool/xmltool.cs     2006-11-07 18:11:37 UTC (rev 
67471)
@@ -163,6 +163,7 @@
                        XmlTextReader schemaxml = new XmlTextReader (args [1]);
                        XSchema xsd = XSchema.Read (schemaxml, null);
                        schemaxml.Close ();
+                       xsd.Compile (null);
                        for (int i = 2; i < args.Length; i++) {
                                XmlTextReader xtr = new XmlTextReader (args 
[i]);
                                XmlValidatingReader xvr = new 
XmlValidatingReader (xtr);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to