added a to_xml example