A working xml reading/writing example.