Namespace ZptSharp.Dom
Classes
AngleSharpAttribute
An implementation of IAttribute based upon an AngleSharp AngleSharp.Dom.IAttr.
AngleSharpDocument
An implementation of IDocument which is based upon an AngleSharp AngleSharp.Html.Dom.IHtmlDocument.
AngleSharpDocumentProvider
An implementation of IReadsAndWritesDocument which uses the AngleSharp HTML parsing library. See https://anglesharp.github.io/ for more information.
AngleSharpNode
Implementation of INode which is based upon an AngleSharp AngleSharp.Dom.INode.
AttributeBase
Abstract base class for an IAttribute, containing functionality which is neutral to the specific implementation.
AttributeSearcher
Performs a recursive search for attributes which match a specification.
AttributeSpec
A specification for an attribute. This may be used to find matching attributes.
DocumentBase
Abstract base class for an IDocument, containing functionality which is neutral to the specific implementation.
DocumentReaderWriterBase<TNativeType>
Abstract base class for implementations of IReadsAndWritesDocument. This class takes care of some boilerplate logic related to the validation of parameters and raising an exception if the operation is to be cancelled.
DocumentReaderWriterRegistry
An implementation of IGetsDocumentReaderWriterForFile which makes use of EnvironmentRegistry and a System.IServiceProvider to get instances of IReadsAndWritesDocument for a given filename or path.
HapAttribute
An implementation of IAttribute based upon an HTML Agility Pack HtmlAgilityPack.HtmlAttribute.
HapDocument
An implementation of IDocument which is based upon an HTML Agility Pack HtmlAgilityPack.HtmlDocument.
HapDocumentProvider
An implementation of IReadsAndWritesDocument which uses the HtmlAgilityPack (aka "HAP") HTML parsing library. See https://html-agility-pack.net/ and https://github.com/zzzprojects/html-agility-pack for more information.
HapNode
Implementation of INode which is based upon an HTML Agility Pack HtmlAgilityPack.HtmlNode.
Namespace
Represents a namespace for an IDocument, INode or IAttribute.
NodeBase
Abstract base class for an INode, containing functionality which is neutral to the specific implementation.
NodeExtensions
Extension methods for INode.
NodeOmitter
Implementation of IOmitsNode which makes use of an IReplacesNode to replace a node with its children.
NodeReplacer
Implementation of IReplacesNode which replaces a node (upon its parent) using a collection of replacement nodes.
NodeReplacerExtensions
Extension methods for IReplacesNode.
ReaderWriterServiceLocator
A really simple class which holds a reference to an instance of IReadsAndWritesDocument. This is used for dependency-injecting a reader.writer object into per-scope services which need it. No logic except for ZptDocumentRenderer and the Bootstrap DI module should actually reference this type.
WellKnownNamespaceProvider
Implementation of IGetsWellKnownNamespace which uses string constants.
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.
XmlAttribute
An implementation of IAttribute based upon an XML System.Xml.Linq.XAttribute.
XmlDocument
An implementation of IDocument which is based upon
a System.Xml.Linq
System.Xml.Linq.XDocument.
XmlDocumentProvider
An implementation of IReadsAndWritesDocument which uses the XML/Linq API built-into .NET Framework and dotnet core. See also: System.Xml.Linq.XDocument
XmlNode
Implementation of INode which is based upon an XML System.Xml.Linq.XNode.
XmlReaderSettingsFactory
Implementation of IGetsXmlReaderSettings which gets a resolver that will parse DTDs and which uses a local set of XHTML DTDs.
Interfaces
IAttribute
Abstraction for a DOM attribute.
ICanReplaceRootNode
Applied to a IDocument which may replace the root node of its DOM.
IDocument
Abstraction for a DOM document.
IGetsDocumentReaderWriterForFile
An object which selects the correct implementation of IReadsAndWritesDocument for a specified filename or path.
IGetsWellKnownNamespace
A provider for well-known namespaces related to ZPT.
IGetsXhtmlDtds
An object which can get an XHTML DTD based on an absolute Uri.
IGetsXmlReaderSettings
An object which gets the System.Xml.XmlReaderSettings for reading XML documents in ZptSharp.
IHasDocumentSourceInfo
An object which may provide information about the source of a document (for example a file on disk).
IHasNodes
An object which has may contain child instances of INode.
INode
Abstraction for a DOM node.
IOmitsNode
An object which can be used to omit a specified node. Omitting an node node is essentially equivalent to replacing that node node with its children.
IReadsAndWritesDocument
An object which may read & write IDocument instances to/from streams. This is the core interface of "a document provider".
IReplacesNode
Replaces the specified node with a collection of replacement nodes.
ISearchesForAttributes
An object which may perform a recursive search of a specified container, finding all attributes which match a spec.
IStoresCurrentReaderWriter
An object which provides access to the current document reader/writer. This interface is only used within the scope of a rendering request, and so generally-speaking should not be used as part of the public API.