<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11-beta-23409" />

IXmlLineInfo

public interface IXmlLineInfo
Provides an interface to enable a class to return line and position information.
int LineNumber { get; }

Gets the current line number.

int LinePosition { get; }

Gets the current line position.

bool HasLineInfo()

Gets a value indicating whether the class can return line information.