Convert iterm2 to xml