There are many files that have been unintentionally modified, and now they do not correspond to their associated scheme.
What I want to do is find the errors and fix them automatically (if possible). I looked at the validation mechanism available in the .NET framework. The problem is that I do not know how I can edit an erroneous node. The validation event handler gives me an event argument that contains some information about the error itself, but not the node and the sender object, which is an object of type XmlValidationReaderImpl, of which I know nothing, and I could not find any information about this type anywhere .
Does anyone know how I can fix an Xml file using a validation mechanism or are there any other methods available?
source
share