Directly read and write XML files (examples and code)