Move XML message lines buffer to separate file