Dreamweaver MX and Dreamweaver MX 2004 both produce good XHTML code easily and efficiently.
For Dreamweaver MX:
Click on File, New, select Basic Page from the categories listed in the left hand panel and select HTML under the Basic Page: column on the right.
At the botrtom right of the splash screen, click to put a tick in the box that says "Make document XHTML compliant".
Dreamweaver MX 2004 is almost the same depending on whether you kept the splash screen visible in the program options on startup.
You can also convert existing web pages to XHTML by opening them in Dreamweaver and click on File, Convert then click on XHTML.
Type XHTML in the search bar of the Dreamweaver helpfiles for loads of information.