diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2002-07-05 18:00:34 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2002-07-05 18:00:34 +0400 |
commit | 86709d74f26dbf25062a83caabfcaa39159f5bee (patch) | |
tree | f872df3a1aa0bcc7454c4e32200ba00dad76bbcd /mcs/class/System.XML/System.Xml | |
parent | 05add8da92a4c33540ef18c3e1d46cf3d12f327e (diff) |
2002-07-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* XmlTextReader.cs: implemented .ctor (Stream).
svn path=/trunk/mcs/; revision=5600
Diffstat (limited to 'mcs/class/System.XML/System.Xml')
-rw-r--r-- | mcs/class/System.XML/System.Xml/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlTextReader.cs | 7 |
2 files changed, 10 insertions, 1 deletions
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 <gonzalo@ximian.com> + + * XmlTextReader.cs: implemented .ctor (Stream). + 2002-06-26 Duncan Mak <duncan@ximian.com> * 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] |