This document should be imported into KHTML via PyXML.
Of course, the whole KDE thing seems to crash more often than not.