I want to prove that $$\int_0^1x^{-x}dx=\sum_{n=1}^\infty n^{-n}$$ And I know that $$x^{-x}=e^{-x\log x}$$ and $$e^u=\sum_{n=0}^\infty \frac{u^n}{n!}$$ I get that $$x^{-x}=\sum_{n=1}^\infty \frac{(-x\log x)^n}{n!}$$
Then I have no idea how to prove the rest of it. Any suggestion? Thanks!