Both men always felt they were doing the right thing for mutantkind, and in Charles case, he felt he was helping mankind in general.  That said, I always found Xavier to be a one dimensional, self righteous jerk.  Magneto is best portrayed as a tragic, sympathetic, anti-hero and occasional villain.