adding new program to check all XML results are well formed