<PackageReference Include="System.Xml.XmlDocument" Version="4.0.1-beta-23409" />

XmlAttribute

public class XmlAttribute : XmlNode
Represents an attribute. Valid and default values for the attribute are defined in a document type definition (DTD) or schema.
public virtual XmlElement OwnerElement { get; }

Gets the XmlElement to which the attribute belongs.

public virtual bool Specified { get; }

Gets a value indicating whether the attribute value was explicitly set.