Class XmlCatalogResolver
Replacement for the built-in .NET "XmlUrlResolver" class. Implements OASIS XML Catalogs mechanism for resolving URIs, etc.
Inherited Members
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. |