fixed file iteration to get just xml