<PackageReference Include="System.Security.Permissions" Version="10.0.4" />

System.Security.XmlSyntaxException

public sealed class XmlSyntaxException : SystemException
The exception that is thrown when there is a syntax error in XML parsing. This class cannot be inherited.
namespace System.Security { public sealed class XmlSyntaxException : SystemException { public XmlSyntaxException(); public XmlSyntaxException(int lineNumber); public XmlSyntaxException(int lineNumber, string message); public XmlSyntaxException(string message); public XmlSyntaxException(string message, Exception inner); } }