X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.XML%2FSystem.Xml%2FXmlImplementation.cs;h=7febaa83644205eeef9ed2ae7a47a2305fc03d89;hb=beb936e904941b05664f8b81c653b7a9060f2ab7;hp=c76875d30bc6982c89b669aab7030e4d63a8949a;hpb=722d2983b5457ee10694f6845aba909c48077083;p=mono.git diff --git a/mcs/class/System.XML/System.Xml/XmlImplementation.cs b/mcs/class/System.XML/System.Xml/XmlImplementation.cs index c76875d30bc..7febaa83644 100644 --- a/mcs/class/System.XML/System.Xml/XmlImplementation.cs +++ b/mcs/class/System.XML/System.Xml/XmlImplementation.cs @@ -10,11 +10,17 @@ namespace System.Xml { public class XmlImplementation { + #region Constructor public XmlImplementation () : base () { + // The following keys are default of MS .NET Framework + NameTable nt = new NameTable(); + internalNameTable = nt; } + #endregion + #region Public Methods public virtual XmlDocument CreateDocument () { return new XmlDocument (this); @@ -22,11 +28,16 @@ namespace System.Xml public bool HasFeature (string strFeature, string strVersion) { - if ((strVersion == "XML") || (strVersion == "xml") // not case-sensitive + if ((strFeature == "XML") || (strFeature == "xml") // not case-sensitive && (strVersion == "1.0") || (strVersion == "2.0")) return true; else return false; } + #endregion + + #region Internals + internal XmlNameTable internalNameTable; + #endregion } }