check if xml files are valid, skip the invalid ones, and log a warning for them