Close gh-193. Define `XMLDocument` in Types.