I need help parsing the below xml data:
from the xml, i want the following:
flightdate
depart
arrive
ReturnDateVal
flightid
Kindly assist
B4X:
<?xml version="1.0" encoding="utf-8"?>
<aerocrs>
<flights>
<flight>
<airline>Safarilink</airline>
<airlineid>4</airlineid>
<airlinelogo>https://storage.aerocrs.com/4/system/SafarilinkLogo.png</airlinelogo>
<childagefrom>2</childagefrom>
<childageto>11</childageto>
<chargetaxoninfant>False</chargetaxoninfant>
<from>Nairobi-Wilson</from>
<to>Samburu</to>
<fromcode>WIL</fromcode>
<tocode>UAS</tocode>
<direction>Outbound</direction>
<flightdate>2017/06/22</flightdate>
<depart>13:00</depart>
<arrive>14:35</arrive>
<number>025</number>
<bookable>true</bookable>
<via></via>
<totalminutes>95</totalminutes>
<linktowebsite>
<url>http://www.flysafarilink.com/booking/search-results-flights.asp</url>
<DepartureDateVal>2017/06/22</DepartureDateVal>
<TripType>RT</TripType>
<FromDSTid>41</FromDSTid>
<ToDSTid>51</ToDSTid>
<ReturnDateVal>2017/06/29</ReturnDateVal>
<invAdlt>2</invAdlt>
<invKids>1</invKids>
<DepartureShow>0</DepartureShow>
<ReturnShow>0</ReturnShow>
</linktowebsite>
<CompanyWebDiscount>0</CompanyWebDiscount>
<Rules>
<rule>this new</rule>
<rule>This service</rule>
</Rules>
<flightcode>1329228</flightcode>
<classes>
<class flightcode="1329228">
<classcode>Y</classcode>
<classname>Economy</classname>
<cabinclass>Economy</cabinclass>
<flightid>4775281</flightid>
<rackfare_adult>192.50</rackfare_adult>
<rackfare_child>144.38</rackfare_child>
<rackfare_infant>0.00</rackfare_infant>
<agtfare_adult>192.50</agtfare_adult>
<agtfare_child>144.38</agtfare_child>
<agtfare_infant>0.00</agtfare_infant>
<tax>11.00</tax>
<rackfare_adult_no_vat>192.5000</rackfare_adult_no_vat>
<rackfare_child_no_vat>144.3800</rackfare_child_no_vat>
<rackfare_infant_no_vat>0.0000</rackfare_infant_no_vat>
<agtfare_adult_no_vat>192.5000</agtfare_adult_no_vat>
<agtfare_child_no_vat>144.3800</agtfare_child_no_vat>
<agtfare_infant_no_vat>0.0000</agtfare_infant_no_vat>
<tax_no_vat>11.0000</tax_no_vat>
<vat_on_fare>0.0000</vat_on_fare>
<vat_on_tax>0.0000</vat_on_tax>
<currency>USD</currency>
<converttousd>0</converttousd>
<ttl>2017/06/08 13:00</ttl>
<baggage>15Kg</baggage>
<classshowonweb>True</classshowonweb>
</class>
</classes>
</flight>
</flights>
</aerocrs>
from the xml, i want the following:
flightdate
depart
arrive
ReturnDateVal
flightid
Kindly assist