Files
mono/mcs/class/System.XML/System.Xml/XmlImplementation.cs
T
Atsushi Eno ff784d30c3 * XmlAttribute.cs : add internal 'IsDefault' property
(equals to !Specified)
	* XmlImplementation.cs : added 'internalNameTable' property.
	* XmlDocument.cs :
	    + now allows "" for 'standalone' in CreateXmlDeclaration.
	    + implemented 'Implementation' property and constructor with it.
	    + added logic for appending name table (but still no use)
	    + implemented property 'DocumentType'
	      (but without internalSubset parsing. wait for next update.)
	* XmlNode.cs :
	    + modified AppendChild() and RemoveChild() to support fragment.
	    + modified AppendChild() to remove newChild from its parent
	      when newChild is already in the other place.
	    + modified RemoveChild() to set parentNode null.
	    + modified ConstructDOM() to create DocumentType,
	      and fixed access modifier ('internal protected' to 'internal')
	* XmlLinkedNode.cs : fixed 'NextSibling' to return null
		when its parent is null.
	* XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
		property to enable AppendChild() for this class.
	* XmlTextReader.cs : appended private publicId and systemId fields.

svn path=/trunk/mcs/; revision=8630
2002-10-28 17:51:36 +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 ((strVersion == "XML") || (strVersion == "xml") // not case-sensitive
&& (strVersion == "1.0") || (strVersion == "2.0"))
return true;
else
return false;
}
#endregion
#region Internals
internal XmlNameTable internalNameTable;
#endregion
}
}