A legacy system that I am working on has a piece of xml which has data embedded in one of the nodes which uses its own format - for some or other reason. I need to extract the information and then re-format the dates.
This is the piece of xml:
<Information>
[OB]LGW|Sun 23, May 2010|11:15|MCO|Sun 23, May 2010|15:25[/OB]
</Information>
I need it transformed to look like this:
<Flight
ArrivalDateTime="2010-05-16T15:35:00"
DepartureDateTime="2010-05-16T11:30:00"
DirectionInd="Outbound"
RPH="1"
TravelCode="24"
Type="Charter"
>