document.py: Uses HTML parser on XHTML docs instead of XHTML parser.

The XHTML parser does not handle soup well.