The XmlContext class represents a context that is shared by multiple XML identifiers and XML nodes.
Object
XmlContext
[Visual Basic] Public Class XmlContext [C#] public class XmlContext [C++] public __gc class XmlContext [JScript] public class XmlContext
Within an XML context, all identifiers with the same name and namespace are represented by the same XmlIdent object instance, and all XML nodes with the same name and namespace have identical ID properties.
Since identical XML identifiers are represented by the same object instance, two identifiers from the same XML context can be checked for equality through a simple reference comparison. This is substantially faster than comparing the actual name and namespace URI strings.
The GetID methods are used to obtain XML identifiers given a name, given a name and a namespace, or given another identifier.
The CreateElement, CreateHeader, CreateText, CreateCData, CreateComment, and CreatePI methods are used to create XML nodes that belong to a given XML context.
Namespace: System.Xml
Assembly: System.dll