Pass just filename to xml::write_data

This is one possible fix for issue #7, I don't think the filename should be hardcoded in `write_data`, but I am not aware of your design goals.