Generate java, html code form xml