XML Format as follows:
<?xml version="1.0" encoding="UTF-8"?>
<Flows><SCN>
<SystemCodeNumber>N11111J</SystemCodeNumber>
<FlowType>Scoot</FlowType>
<ShortDescription/>
<Northing>0.00</Northing>
<Easting>0.00</Easting>
<Flows>
<Flow Date="2015-05-03 05:08:35">1.0</Flow>
<Flow Date="2015-05-03 05:13:35">4.0</Flow>
etc.
I am accessing an XML file as a single merged feature type as i would like an output as follows:
SystemCodeNumber,Northing,Easting,Speed,Flow,Date
N11111J,0.00,0.00,,1.0,2015-05-03 05:08:35
N11111J,0.00,0.00,,4.0,2015-05-03 05:13:35
N11111J,0.00,0.00,,1.0,2015-05-03 05:18:35
N11111J,0.00,0.00,,0.0,2015-05-03 05:23:35
as so on.
I am getting the elements i want:
and flattening the elements:
not the output is fine, im getting what i require out:
I have my SystemCodeNumber, Easting and Northing out. I would like to add them as i one to many so i can get my output as required. At the moment im testing to see if the attribute exists and storing it in a VariableSetter and Retrieving it before writing.
What im trying to figure out (without having to go down the python route as i can do it in python is if we have a simpler way to do this?
Thanks