Show / Hide Table of Contents

Class XmlCatalogResolver

Replacement for the built-in .NET "XmlUrlResolver" class. Implements OASIS XML Catalogs mechanism for resolving URIs, etc.

Inheritance
object
XmlResolver
XmlUrlResolver
XmlCatalogResolver
Inherited Members
XmlUrlResolver.GetEntity(Uri, string, Type)
XmlUrlResolver.GetEntityAsync(Uri, string, Type)
XmlUrlResolver.Credentials
XmlUrlResolver.Proxy
XmlUrlResolver.CachePolicy
XmlResolver.SupportsType(Uri, Type)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: net.xmlcatalog
Assembly: Algenta.Colectica.Model.dll
Syntax
public class XmlCatalogResolver : XmlUrlResolver
Remarks

This is the only class that users need to use directly.

Constructors

XmlCatalogResolver()

Default constructor.

Declaration
public XmlCatalogResolver()

XmlCatalogResolver(string)

Constructor that takes a catalog path list.

Declaration
public XmlCatalogResolver(string catalogPaths)
Parameters
Type Name Description
string catalogPaths

A semicolon-separated list of catalog paths

XmlCatalogResolver(Uri[])

Constructor that takes a catalog file array.

Declaration
public XmlCatalogResolver(Uri[] catalogUris)
Parameters
Type Name Description
Uri[] catalogUris

An array of catalog file URIs

Fields

Prefer

Preference for the order in which catalog substitutions are tried.

Declaration
public XmlCatalogResolver.PreferType Prefer
Field Value
Type Description
XmlCatalogResolver.PreferType

Methods

ReloadCatalogs(string)

Reloads catalog details from a set of catalog paths

Declaration
public void ReloadCatalogs(string catalogPaths)
Parameters
Type Name Description
string catalogPaths

A semicolon-separated list of catalog paths or URIs

ReloadCatalogs(Uri[])

Reloads catalog details from a set of catalog files

Declaration
public void ReloadCatalogs(Uri[] catalogUris)
Parameters
Type Name Description
Uri[] catalogUris

An array of catalog file URIs

ResolveUri(Uri, string)

Resolves a URI if possible.

Declaration
public override Uri ResolveUri(Uri baseUri, string relativeUri)
Parameters
Type Name Description
Uri baseUri

Base URI for relative URIs

string relativeUri

An absolute or relative URI

Returns
Type Description
Uri

A resolved URI, or the original relative URI if it cannot be resolved.

Overrides
XmlUrlResolver.ResolveUri(Uri, string)

Extension Methods

Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX