XAS and RIXS: all-electron vs pseudo