mscorlib(4.0.0.0) API with additions
XmlImplementation.cs
1 namespace System.Xml
2 {
4  public class XmlImplementation
5  {
6  private XmlNameTable nameTable;
7 
8  internal XmlNameTable NameTable => nameTable;
9 
12  : this(new NameTable())
13  {
14  }
15 
19  {
20  nameTable = nt;
21  }
22 
28  public bool HasFeature(string strFeature, string strVersion)
29  {
30  if (string.Compare("XML", strFeature, StringComparison.OrdinalIgnoreCase) == 0 && (strVersion == null || strVersion == "1.0" || strVersion == "2.0"))
31  {
32  return true;
33  }
34  return false;
35  }
36 
39  public virtual XmlDocument CreateDocument()
40  {
41  return new XmlDocument(this);
42  }
43  }
44 }
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
Definition: XmlDocument.cs:13
StringComparison
Specifies the culture, case, and sort rules to be used by certain overloads of the M:System....
Defines the context for a set of T:System.Xml.XmlDocument objects.
Implements a single-threaded T:System.Xml.XmlNameTable.
Definition: NameTable.cs:5
XmlImplementation()
Initializes a new instance of the T:System.Xml.XmlImplementation class.
bool HasFeature(string strFeature, string strVersion)
Tests if the Document Object Model (DOM) implementation implements a specific feature.
Table of atomized string objects.
Definition: XmlNameTable.cs:5
XmlImplementation(XmlNameTable nt)
Initializes a new instance of the T:System.Xml.XmlImplementation class with the T:System....
virtual XmlDocument CreateDocument()
Creates a new T:System.Xml.XmlDocument.