Represents an interface that resolves Uniform Resource Identifiers (URIs) to a new URI.
The IXmlUriResolver
interface is used to resolve relative URIs to absolute URIs. This is particularly useful when processing XML documents that might reference external resources using relative paths.
Resolves a relative URI to an absolute URI.
baseUri
: The base URI to resolve the relative URI against.relativeUri
: The relative URI to resolve.An absolute System.Uri
object representing the resolved URI.
Namespace:System.Xml
Assembly:System.Xml.dll
Implementations of this interface can provide custom logic for URI resolution, allowing for scenarios like:
The .NET Framework provides a default implementation of IXmlUriResolver
that can be used in most common scenarios.
System.Uri
XmlReader
XmlResolver
(for a concrete class implementing resolution)