Greetings Lisa: My husband and I haven't taken the train, although we have been to both. I phoned a friend who stated she had taken the trip via train and thought it was six hours, give or take, but it was several years ago. We don't typically travel by train, but she suggested you might utilize eurailgroup.com for train travel.
I hope this information is helpful and also hope you have a wonderful time! Enjoy!