A very simple xml reader/writer