Bind html rendering to xml