Class XhtmlOnlyXmlUrlResolver
A specialisation of System.Xml.XmlUrlResolver which resolves only XHTML 1.0 and XHTML 1.1 entities. This class does not permit the direct usage of network requests, it makes use of a IGetsXhtmlDtds as its source for the DTD/entity/module resources.
Inheritance
System.Object
System.Xml.XmlResolver
System.Xml.XmlUrlResolver
XhtmlOnlyXmlUrlResolver
Inherited Members
System.Xml.XmlUrlResolver.GetEntityAsync(System.Uri, System.String, System.Type)
System.Xml.XmlUrlResolver.CachePolicy
System.Xml.XmlUrlResolver.Credentials
System.Xml.XmlUrlResolver.Proxy
System.Xml.XmlResolver.SupportsType(System.Uri, System.Type)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Dom
Assembly: ZptSharp.Xml.dll
Syntax
public class XhtmlOnlyXmlUrlResolver : XmlUrlResolver
Constructors
| Improve this Doc View SourceXhtmlOnlyXmlUrlResolver(IGetsXhtmlDtds)
Initializes a new instance of the XhtmlOnlyXmlUrlResolver class.
Declaration
public XhtmlOnlyXmlUrlResolver(IGetsXhtmlDtds xhtmlDtdProvider)
Parameters
Type | Name | Description |
---|---|---|
IGetsXhtmlDtds | xhtmlDtdProvider | Xhtml dtd provider. |
Fields
| Improve this Doc View SourceDtdBaseUri
Gets a Uri for the root location where XHTML DTDs are found.
Declaration
public static readonly Uri DtdBaseUri
Field Value
Type | Description |
---|---|
System.Uri |
ModuleBaseUri
Gets a Uri for the root location where XHTML modules are found.
Declaration
public static readonly Uri ModuleBaseUri
Field Value
Type | Description |
---|---|
System.Uri |
W3BaseUri
Gets a Uri for the root of the w3.org's resolution namespace.
Declaration
public static readonly Uri W3BaseUri
Field Value
Type | Description |
---|---|
System.Uri |
Methods
| Improve this Doc View SourceGetEntity(Uri, String, Type)
Gets the requested entity from a URI.
Declaration
public override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | absoluteUri | Absolute URI. |
System.String | role | Role. |
System.Type | ofObjectToReturn | Of object to return. |
Returns
Type | Description |
---|---|
System.Object | The entity. |
Overrides
System.Xml.XmlUrlResolver.GetEntity(System.Uri, System.String, System.Type)
|
Improve this Doc
View Source
ResolveUri(Uri, String)
Resolves the URI from a base URI and a relative URI component.
Declaration
public override Uri ResolveUri(Uri baseUri, string relativeUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | baseUri | Base URI. |
System.String | relativeUri | Relative URI. |
Returns
Type | Description |
---|---|
System.Uri | The resolved URI. |
Overrides
System.Xml.XmlUrlResolver.ResolveUri(System.Uri, System.String)