Dude spent his entire lifetime playing chess tournaments and events like this and he FORGETS about the dress code?! Come on @MagnusCarlsen. You have put yourself down. 
You may have beef with FIDE, but don't use the PRINCIPLES excuse to withdraw from the tournament.