Is there any way to validate an XML file on an XSD schema with the output of the error line numbers?
The XmlReader reader doesn\'t allow line numbers, it shows only
See the original MSDN example:
http://msdn.microsoft.com/en-us/library/ms172454.aspx
ValidationEventHandler's ValidationEventArgs argument has Exception.LineNumber:
private void SchemaValidationEventHandler(object sender, ValidationEventArgs e) {
Console.WriteLine("XML {0}: {1} (Line {2})",
e.Severity,
e.Message,
e.Exception.LineNumber);
}