XML - pasar valores a un xml

 
Vista:
sin imagen de perfil

pasar valores a un xml

Publicado por alexis (6 intervenciones) el 10/07/2012 01:35:23
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
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder