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

System.Xml.Linq.LoadOptions

public enum LoadOptions
Specifies load options when parsing XML.
None = 0

Does not preserve insignificant white space or load base URI and line information.

Preserves insignificant white space while parsing.

Requests the base URI information from the XmlReader, and makes it available via the BaseUri property.

Requests the line information from the XmlReader and makes it available via properties on XObject.