From 86709d74f26dbf25062a83caabfcaa39159f5bee Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Fri, 5 Jul 2002 14:00:34 +0000 Subject: 2002-07-05 Gonzalo Paniagua Javier * XmlTextReader.cs: implemented .ctor (Stream). svn path=/trunk/mcs/; revision=5600 --- mcs/class/System.XML/System.Xml/ChangeLog | 4 ++++ mcs/class/System.XML/System.Xml/XmlTextReader.cs | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'mcs/class/System.XML/System.Xml') diff --git a/mcs/class/System.XML/System.Xml/ChangeLog b/mcs/class/System.XML/System.Xml/ChangeLog index 7e7d9b00d11..51b7e658681 100644 --- a/mcs/class/System.XML/System.Xml/ChangeLog +++ b/mcs/class/System.XML/System.Xml/ChangeLog @@ -1,3 +1,7 @@ +2002-07-05 Gonzalo Paniagua Javier + + * XmlTextReader.cs: implemented .ctor (Stream). + 2002-06-26 Duncan Mak * XmlNodeReader.cs: Implementation of most of the properties, and diff --git a/mcs/class/System.XML/System.Xml/XmlTextReader.cs b/mcs/class/System.XML/System.Xml/XmlTextReader.cs index 0a6ebbdbe19..91611af2ee9 100644 --- a/mcs/class/System.XML/System.Xml/XmlTextReader.cs +++ b/mcs/class/System.XML/System.Xml/XmlTextReader.cs @@ -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] -- cgit v1.2.3