System.Xml.XmlNameTable Class

Table of atomized string objects.

See Also: XmlNameTable Members

Syntax

public abstract class XmlNameTable

Remarks

Several classes, such as System.Xml.XmlDocument and System.Xml.XmlReader, use the XmlNameTable class internally to store attribute and element names. When an element or attribute name occurs multiple times in an XML document, it is stored only once in the XmlNameTable.

The names are stored as common language runtime (CLR) object types. This enables you to do object comparisons on these strings rather than a more expensive string comparison. These string objects are referred to as atomized strings.

XmlNameTable is implemented in the System.Xml.NameTable class.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Example

See the System.Xml.NameTable class for an example using this class.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0