Fixed MoveToParent issues with the navigator and attributes.
[mono.git] / mcs / class / System.XML / System.Xml / XmlTextReader.cs
index 0a6ebbdbe1937e41f5c48b936ba1d533133cf515..91611af2ee9d2ac6254437660226abf26b9ee56b 100644 (file)
@@ -49,7 +49,12 @@ namespace System.Xml
                [MonoTODO]
                public XmlTextReader (Stream input)
                {
-                       throw new NotImplementedException ();
+                       // We can share some code in the constructors (at least for this one and next 2)
+                       XmlNameTable nt = new NameTable ();
+                       XmlNamespaceManager nsMgr = new XmlNamespaceManager (nt);
+                       parserContext = new XmlParserContext (null, nsMgr, null, XmlSpace.None);
+                       Init ();
+                       reader = new StreamReader (input);
                }
 
                [MonoTODO]