Buenas tardes que tal, deseaba saber si alguien sabe como pasarle valores a un archivo . xml
para el siguiente ejemplo
<?xml version="1.0" encoding="UTF-8"?>
<plusgradeOfferRequestToken>
<flights>
    <flight>
      <departureDate>2011-10-15</departureDate>
      <origination>rrr</origination>
      <destination>ggg</destination>
      <flightNumber>104</flightNumber>
      <offerUrl>
https://upgrade.plusgrade.com/offer/       yourPID/offer/upgrade/YourAPIKey</offerUrl>
      <imageUrl>
https://upgrade.plusgrade.com/offer/       yourPID/offer/tag/YourAPIKey</imageUrl>
    </flight>
    <flight>
      <departureDate>2011-10-17</departureDate>
      <origination>YYY</origination>
      <destination>XXX</destination>
      <flightNumber>103</flightNumber>
      <offerUrl>
https://upgrade.plusgrade.com/offer/       yourPID/offer/upgrade/YourAPIKey</offerUrl>
      <imageUrl>
https://upgrade.plusgrade.com/offer/       yourPID/offer/tag/YourAPIKey</imageUrl>    </flight>
<flights>
</plusgradeOfferRequestToken>
como seria la forma para crear el .xml y luego para enviarle los valores de un archivo txt