Use of the word BOTH in Chinese.
In fact 一边。。。一边。。。 means doing two things at the same time, like 我一边学习一边听音乐 means I listen to the music while studying.

Here, you can say 我去中国既旅行又学习汉语。 

既。。又。。 is an appropriate phrase to express that.