SchemaTron icon indicating copy to clipboard operation
SchemaTron copied to clipboard

XML line numbers

Open sirclaudio opened this issue 6 years ago • 0 comments

Hello,

It would be nice if the errors could show the line numbers and position in the XML. It can be done replacing the line 405 of Validator.cs (XdmDocument xmlprimeDoc = new XdmDocument(aDoc.CreateReader()) with this one:

XdmDocument xmlprimeDoc = new XdmDocument(aDoc.CreateReader(), XmlSpace.Preserve, true);

Do you think it's a change you could incorporate in your code?

sirclaudio avatar Jul 26 '19 12:07 sirclaudio