2004-01-13 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml / XmlParserInput.cs
index 165fa49b8fdc837730b9c4811e82a8b5fed61eae..715b30aa51d074b532f50494e7ac699da1e0ba25 100644 (file)
@@ -127,12 +127,11 @@ namespace Mono.Xml.Native
                        get { return this.currentMarkup; }\r
                }\r
 \r
-               private char [] wsChars = new char [] {' ', '\r', '\n', '\t'};\r
                public bool HasPEBuffer {\r
                        get {\r
                                if (!peStored)\r
                                        return false;\r
-                               else if (peBuffer.ToString ().Trim (wsChars).Length == 0)\r
+                               else if (peBuffer.ToString ().Trim (XmlChar.WhitespaceChars).Length == 0)\r
                                        return false;\r
                                else\r
                                        return true;\r
@@ -193,7 +192,7 @@ namespace Mono.Xml.Native
 \r
                private XmlException ReaderError (string message)\r
                {\r
-                       return new XmlException (message, line, column);\r
+                       return new XmlException (message, null, line, column);\r
                }\r
                #endregion\r
        }\r