Also decode XMLDocument type (no encoding).