This advanced validation workflow component, Rule-based validation report to XML attachment, can be executed after a rule-based XML validation. If called it will copy the validation report into an XML attachment, which can be emailed. This XML attachment is named Failed_validation.xml.
The component has no parameters.
After running the component, Rule-based validation report to XML attachment you can e.g. use the component, From attachment to resource to save the report as an XML file in the other folder of the Library like below:
A suggestion for implementation can be found here.