Mono Class Library: System.Xml Namespace

System.Xml.XmlNamespaceManager Class

Resolves, adds, and removes namespaces in a collection and provides scope management for these namespaces. This class is used by the System.Xml.XmlReader and System.Xml.XmlTextReader classes. [Edit]

See Also: XmlNamespaceManager Members

public class XmlNamespaceManager : IEnumerable, IXmlNamespaceResolver

Thread Safety

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

Remarks

This class stores prefixes and namespaces as unique string objects.

System.Xml.XmlNamespaceManager assumes all prefixes and namespaces are valid.

If the prefix and namespace already exist within the current scope, they will replace the existing prefix/namespace combination. The same prefix and namespace combination can exist across different scopes.

The following prefix/namespace pairs are added by default to the System.Xml.XmlNamespaceManager. They can be determined at any scope.

PrefixNamespace
xmlnshttp://www.w3.org/2000/xmlns/ (the xmlns prefix namespace)
xmlhttp://www.w3.org/XML/1998/namespace (The XML namespace)
string.Emptystring.Empty. The empty namespace can be reassigned a different prefix. For example, xmlns="" defines the default namespace to be the empty namespace.
[Edit]

Requirements

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