Error in validating the xml file against the latest schema
We need to add a custom Error Handler which populates a list of validation errors. Validator validator = Validator() List exceptions =  //Empty list to store errors //Create a custom error handler that populates the list when errors occur.
If an XML file has multiple validation errors (say four), then in first run, the exception will be thrown as soon as the first error will be encountered and we do not get to know about remaining three errors.
Replace Decimals With Comma To Be With Point('C:\temp\test_initial.xml','C:\temp\test.xml'); //validate xml with XSD Validate XMLSchema.
Xml, Version=184.108.40.206, Culture=neutral, Public Key Token=b77a5c561934e089′I wrapped these functions into Codeunit 50008 “Validate XML Schema” and I call them from a sample codeunit 50009 “Update and Check XML File” in order to transform the Initial XML file into a valid XML and then Validate it against the schema: On Run() //Convert decimals with Comma to be with Point in XML file Validate XMLSchema.
When validation completes, you will be presented with a validation results dialog, and any problems found will be shown in the Problems view.
To open the Problems view, select Problems from the menu bar (Window -- To run validation as part of building, the Validation Builder must be set on the project and the desired validators enabled.