Oxford beat local rivals Swindon 2-1 at the County Ground in a match which also saw Swindon manager Paolo Di Canio sent to the stands.