Author: atsushi
Date: 2005-12-13 05:16:42 -0500 (Tue, 13 Dec 2005)
New Revision: 54274

Modified:
   trunk/mcs/class/System.XML/System.Xml/ChangeLog
   trunk/mcs/class/System.XML/System.Xml/XmlTextReader.cs
Log:
2005-12-13  Atsushi Enomoto <[EMAIL PROTECTED]>

        * XmlTextReader.cs : 1.x build fix.



Modified: trunk/mcs/class/System.XML/System.Xml/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/ChangeLog     2005-12-13 09:45:56 UTC 
(rev 54273)
+++ trunk/mcs/class/System.XML/System.Xml/ChangeLog     2005-12-13 10:16:42 UTC 
(rev 54274)
@@ -1,5 +1,9 @@
 2005-12-13  Atsushi Enomoto <[EMAIL PROTECTED]>
 
+       * XmlTextReader.cs : 1.x build fix.
+
+2005-12-13  Atsushi Enomoto <[EMAIL PROTECTED]>
+
        * XmlTextReader.cs : when XmlReader.Create() creates this instance,
          don't expect strict text declaration. Check SkipTextDeclaration()
          on Read().

Modified: trunk/mcs/class/System.XML/System.Xml/XmlTextReader.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml/XmlTextReader.cs      2005-12-13 
09:45:56 UTC (rev 54273)
+++ trunk/mcs/class/System.XML/System.Xml/XmlTextReader.cs      2005-12-13 
10:16:42 UTC (rev 54274)
@@ -2083,11 +2083,13 @@
                                }
                                // Encoding value should be checked inside 
XmlInputStream.
                        }
+#if NET_2_0
                        // this condition is to check if this instance is
                        // not created by XmlReader.Create() (which just
                        // omits strict text declaration check).
                        else if (Conformance == ConformanceLevel.Auto)
                                throw NotWFError ("Encoding declaration is 
mandatory in text declaration.");
+#endif
 
                        Expect ("?>");
                }

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

Reply via email to