mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* 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
45 lines
931 B
C#
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
|
|
}
|
|
}
|