Added -v flag. Some changes trying to merge a XML file.