illustrates how to write and read XML files