Files
mono/mcs/class/System.XML/System.Xml/XmlImplementation.cs
T
Atsushi Eno 2e584078f8 2004-03-19 Atsushi Enomoto <[email protected]>
* XmlImplementation.cs : HasFeature() returns true when strVersion
	  is null.

svn path=/trunk/mcs/; revision=24329
2004-03-19 14:31:06 +00:00

45 lines
806 B
C#

//
// System.Xml.XmlImplementation.cs
//
// Author: Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
namespace System.Xml
{
public class XmlImplementation
{
#region Constructor
public XmlImplementation ()
{
InternalNameTable = new NameTable ();
}
#endregion
#region Public Methods
public virtual XmlDocument CreateDocument ()
{
return new XmlDocument (this);
}
public bool HasFeature (string strFeature, string strVersion)
{
if (String.Compare (strFeature, "xml", true) == 0) { // not case-sensitive
switch (strVersion) {
case "1.0":
case "2.0":
case null:
return true;
}
}
return false;
}
#endregion
#region Internals
internal XmlNameTable InternalNameTable;
#endregion
}
}