Perl programs can use the SGMLSpm module to help convert SGML, HTML or XML documents into new formats.