Files
mono/mcs/class/System.XML/System.Xml/XmlImplementation.cs
T
Duncan Mak 7702c2b486 2002-11-24 Duncan Mak <[email protected]>
* XmlImplementation.cs (HasFeature): Fixed a typo. Thanks for
	Fabricio Barros Cabral (fx) on #mono for spotting it. This is his
	first patch to Mono! ;-)

svn path=/trunk/mcs/; revision=9161
2002-11-24 08:22:01 +00:00

44 lines
877 B
C#

//
// System.Xml.XmlImplementation.cs
//
// Author: Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
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);
}
public bool HasFeature (string strFeature, string strVersion)
{
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
}
}