And the Swineherd went behind a tree , washed the black and brown off his face , threw away his old clothes , and then stepped forward in his splendid dress , looking so beautiful that the Princess was obliged to courtesy . '