Changed version attrbute ordering on output for Observables
Updated demo script to output xml using to_xml()