add xml marshaling to minimal example