XmlNamespaceManager Class

Resolves, adds, and removes namespaces to a collection and provides scope management for these namespaces.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public class XmlNamespaceManager : IXmlNamespaceResolver, 
	IEnumerable

The XmlNamespaceManager type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryXmlNamespaceManagerInitializes a new instance of the XmlNamespaceManager class with the specified XmlNameTable.
Top

  NameDescription
Public propertySupported by the XNA FrameworkSupported by Portable Class LibraryDefaultNamespaceGets the namespace URI for the default namespace.
Public propertySupported by the XNA FrameworkSupported by Portable Class LibraryNameTableGets the XmlNameTable associated with this object.
Top

  NameDescription
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryAddNamespaceAdds the given namespace to the collection.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkSupported by Portable Class LibraryFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetEnumeratorReturns an enumerator to use to iterate through the namespaces in the XmlNamespaceManager.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetNamespacesInScopeGets a collection of namespace names keyed by prefix which can be used to enumerate the namespaces currently in scope.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryHasNamespaceGets a value indicating whether the supplied prefix has a namespace defined for the current pushed scope.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryLookupNamespaceGets the namespace URI for the specified prefix.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryLookupPrefixFinds the prefix declared for the given namespace URI.
Protected methodSupported by the XNA FrameworkSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryPopScopePops a namespace scope off the stack.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryPushScopePushes a namespace scope onto the stack.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryRemoveNamespaceRemoves the given namespace for the given prefix.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodSupported by Portable Class LibraryAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by the XNA FrameworkSupported by Portable Class LibraryCast<TResult>Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by the XNA FrameworkSupported by Portable Class LibraryOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

XmlNamespaceManager stores prefixes and namespaces as strings.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft