gap777 / SchemaTron

Native C#/.NET implementation of ISO schematron
Other
19 stars 7 forks source link

XML line numbers #13

Open sirclaudio opened 5 years ago

sirclaudio commented 5 years ago

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?