AngleSharp by AngleSharp

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

 XmlTagToken

sealed class XmlTagToken : XmlToken
Class for StartTagToken and EndTagToken.
public List<KeyValuePair<string, string>> Attributes { get; }

Gets the list of attributes.

public bool IsSelfClosing { get; set; }

Gets or sets the state of the self-closing flag.

public string Name { get; set; }

Gets or sets the name of the tag.

public XmlTagToken(XmlTokenType type, TextPosition position)

Sets the default values.

public void AddAttribute(string name)

Adds a new attribute to the list of attributes. The value will be set to an empty string.

public void AddAttribute(string name, string value)

Adds a new attribute to the list of attributes.

public string GetAttribute(string name)

Gets the value of the attribute with the given name or an empty string if the attribute is not available.

public void SetAttributeValue(string value)

Sets the value of the last added attribute.