Guide for 0.3.x branch
Title(Generating Markup Programmatically)?
See also: genshi.builder, Documentation, Markup streams