XmlParserOptions Class

Options of XmlDocumentParser.

public sealed class XmlParserOptions

Constructors

NameDescription
XmlParserOptions()

XmlParserOptions()

XmlDocumentParser.cs
public XmlParserOptions()

No documentation is available.

Properties

NameDescription
ContentTypeGets the content type of the document: "application/xml", "text/xml", "application/xhtml+xml" or "image/svg+xml".
CustomElementRegistryGets or sets the custom element registry of the parsed document (see HtmlParserOptions.CustomElementRegistry).
UrlGets the URL of the document.

Gets the content type of the document: "application/xml", "text/xml", "application/xhtml+xml" or "image/svg+xml".

public string ContentType { get; init; }

Property value

string

CustomElementRegistry

XmlDocumentParser.cs

Gets or sets the custom element registry of the parsed document (see HtmlParserOptions.CustomElementRegistry).

public CustomElementRegistry? CustomElementRegistry { get; init; }

Gets the URL of the document.

public string? Url { get; init; }

Property value

string?