AngleSharp by AngleSharp

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

 XmlParser

public class 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 XmlParser()

Creates a new parser with the default options and configuration.

public XmlParser(XmlParserOptions options)

Creates a new parser with the custom options.

public XmlParser(IConfiguration configuration)

Creates a new parser with the custom configuration.

public XmlParser(XmlParserOptions options, IConfiguration configuration)

Creates a new parser with the custom options and configuration.

public XmlParser(XmlParserOptions options, IBrowsingContext context)

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

public IXmlDocument Parse(string source)

Parses the string and returns the result.

public IXmlDocument Parse(Stream source)

Parses the stream and returns the result.

public Task<IXmlDocument> ParseAsync(string source)

Parses the string asynchronously.

Parses the stream asynchronously.

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

Parses the string asynchronously with option to cancel.

Parses the stream asynchronously with option to cancel.