Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​Xml.​IXmlNamespaceResolver

Assembly: System.Xml.ReaderWriter

Provides read-only access to a set of prefix and namespace mappings.

Methods

GetNamespacesInScope​(XmlNamespaceScope scope)
Gets a collection of defined prefix-namespace mappings that are currently in scope.
Returns An <see cref="T:System.Collections.IDictionary" /> that contains the current in-scope namespaces.
scope An <see cref="T:System.Xml.XmlNamespaceScope" /> value that specifies the type of namespace nodes to return.
string
LookupNamespace​(string prefix)
Gets the namespace URI mapped to the specified prefix.
Returns The namespace URI that is mapped to the prefix; <see langword="null" /> if the prefix is not mapped to a namespace URI.
prefix The prefix whose namespace URI you wish to find.
string
LookupPrefix​(string namespaceName)
Gets the prefix that is mapped to the specified namespace URI.
Returns The prefix that is mapped to the namespace URI; <see langword="null" /> if the namespace URI is not mapped to a prefix.
namespaceName The namespace URI whose prefix you wish to find.