Sane typehinting for XMLBuilder