Move old externalresponse XML parser into subfunction, fix correctness bug (should be correct/incorrect not True/False)