Files
mono/mcs/class/System.XML/System.Xml/XmlImplementation.cs
T
Atsushi Eno a02a5b1d9c 2003-10-09 Atsushi Enomoto <[email protected]>
* Added DTDReader.cs. It is almost importation of XmlTextReader.
	* DTDObjectModel.cs :
	  - More .NET-ism. Properties took place of fields.
	  - Imported PE set from XmlTextReader. Added location info.
	  - Added DTDEntityBase common to PE and GE.
	  - More correct text declaration handling with new XmlTextReader.
	* DTDValidatingReader.cs :
	  - Now uses entity resolving XmlTextReader to validate attributes
	    correctly. Implemented standalone
	  - Standalone and default related validity constraints check.
	* XmlImplementation.cs: Implemented HasFeature().
	* XmlNode.cs : Implemented Supports().
	* XmlNodeReader.cs : Modified to use XmlTextReader.SkipTextDeclaration()
	* XmlParserInput.cs : Removed extraneous members.
	* XmlTextReader.cs :
	  - All DTD related functionality now goes to DTDReader.cs
	  - It became old simple TextReader input style.
	  - Implemented GetRemainder().
	  - Implemented ReadBase64(), ReadBinHex() and ReadChars(), using
	    additional new private method ReadUntilEndTag().
	  - Removed incomplete MaybeTextDecl and added SkipTextDeclaration().
	    ReadXmlDeclaration() now became simple.
	  - More strict entity reference check at SetEntityReferenceProperty()
	  - Removed extraneous members.
	* XmlWriter.cs : WriteNode(XmlNodeType.None) does not raise error.

svn path=/trunk/mcs/; revision=18812
2003-10-09 19:13:16 +00:00

45 lines
931 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 (String.Compare (strFeature, "xml", true) == 0 // not case-sensitive
&& (String.Compare (strVersion, "1.0", true) == 0
|| String.Compare (strVersion, "2.0", true) == 0))
return true;
else
return false;
}
#endregion
#region Internals
internal XmlNameTable internalNameTable;
#endregion
}
}