Name
XmlNamespaceManager
Synopsis
This class represents a collection of namespace prefixes and namespace URIs that are
used to manage and resolve namespace information. The namespace
manager is constructed using an XmlNameTable
. XmlNamespaceManager
is used internally by XmlReader
to resolve namespace prefixes and
track the current scope. XmlNamespaceManager
maintains scope in a
stack, which can be manipulated with PopScope()
and PushScope()
.
Namespaces must be added explicitly to the namespace manager with AddNamespace()
, even if you use an existing XmlNameTable
.
Public Class XmlNamespaceManager : Implements IEnumerable ' Public Constructors Public Sub New( ByVal nameTable As XmlNameTable) ' Public Instance Properties Overridable Public ReadOnly Property DefaultNamespace As String Public ReadOnly Property NameTable As XmlNameTable ' Public Instance Methods Overridable Public Sub AddNamespace(ByVal prefix As String, ByVal uri As String) Overridable Public Function GetEnumerator( ) As IEnumerator Implements IEnumerable.GetEnumerator Overridable Public Function HasNamespace( ByVal prefix As String) As Boolean Overridable Public Function LookupNamespace( ByVal prefix As String) As String Overridable Public Function LookupPrefix( ByVal uri As String) As String Overridable Public Function PopScope() As Boolean Overridable Public Sub PushScope() Overridable Public Sub RemoveNamespace( ByVal prefix As String, ByVal uri As String) End Class
Subclasses
System.Xml.Xsl.XsltContext
Returned By ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.