AngleSharp by AngleSharp

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

 XmlParser

Creates an instance of the XML parser front-end.
public IBrowsingContext Context { get; }

Gets the specified context.

public XmlParserOptions Options { get; }

Gets the specified options.

public event DomEventHandler Error

Fired when a XML parse error is encountered.

public event DomEventHandler Parsed

Fired when the XML parser is finished.

public event DomEventHandler Parsing

Fired when the XML parser is starting.

public XmlParser()

Creates a new parser with the default options and context.

public XmlParser(XmlParserOptions options)

Creates a new parser with the custom options.

public XmlParser(XmlParserOptions options, IBrowsingContext context)

Creates a new parser with the custom options and the given context.

public IXmlDocument ParseDocument(string source)

Parses the string and returns the result.

Parses the stream and returns the result.

public Task<IXmlDocument> ParseDocumentAsync(string source, CancellationToken cancel)

Parses the string asynchronously with option to cancel.

Parses the stream asynchronously with option to cancel.