XmlParseException public class XmlParseException : Exception Exception that is thrown if an ill-formatted XML document is parsed. Documentation Code public int Code { get; } Gets the provided error code. public TextPosition Position { get; } Gets the position of the error. public XmlParseException(int code, string message, TextPosition position) Creates a new XmlParseException.