• Sábado 20 de Abril de 2024, 01:25

Autor Tema:  Pasar valores a un xml  (Leído 3929 veces)

alexisgondola

  • Miembro activo
  • **
  • Mensajes: 37
  • Nacionalidad: pa
    • Ver Perfil
Pasar valores a un xml
« en: Martes 10 de Julio de 2012, 01:37 »
0
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
todos los dias se aprende algo nuevo