how do I connect the digital optical audio cable?
I want my cable box and xbox all to be connected to the soundbar, how do I do that?
That completely depends on what soundbar and receiver you have. If you don't have a receiver you can connect the TV to the soundbar in most cases and have the audio just pass through (check your TV manual for settings changes)