#!/usr/bin/python3
# Tidy and repair malformed XML like that produced by CATCH under multithreaded use :)
# (C) 2015 Niall Douglas http://www.nedprod.com/
# Created: 22nd Feb 2015
import sys, lxml.etree
if len(sys.argv)<2:
print("Usage: "+sys.argv[0]+" [