Read write xml

First go at "read-write-xml", let me know what you think.