AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.2.4" />

 DocumentType

public sealed class DocumentType : Node
Represents the document type node.
public string InternalSubset { get; set; }

Gets or sets the internal subset of the document type.

public string Name { get; set; }

Gets or sets the name of the document type.

public string PublicId { get; set; }

Gets or sets the public ID of the document type.

public string SystemId { get; set; }

Gets or sets the system ID of the document type.

public DocumentType After(Node[] nodes)

Inserts nodes after the current doctype.

public DocumentType Before(Node[] nodes)

Inserts nodes before the current doctype.

Removes the current doctype from the parent.

public DocumentType Replace(Node[] nodes)

Replaces the current doctype with the nodes.