Refactor #to_xml
Rename Openurl to InvokeHistory