How do you repair a steel supporting beam in a block of flats that has substantial rust?

Rusted part was in a planter box that has had dirt against it for years. Can the steel be cleaned and if it needs replacing can a section be cut out and a new section welded in ?
Update: The beam is a vertical beam , three storeys long.
2 answers 2