The pyxhtml Python XHTML class can be used to programatically generate XHTML documents. It is particularly useful when one has to add an XHTML output module to a Python application.