Document API: Code for XHTML, improved example.