Moving programmatic elements into XML.