Hello - part 2 of an XML thread.
I have a bunch of nodes in an XML document that look like this;
<nodes>
<node>
<properties>
<property type="field_name">first_name</property>
<property type="field_data">Ben</property>
</properties>
</node>
<node>
<properties>
<property type="field_name">last_name</property>
<property type="field_data">Potts</property>
</properties>
</node>
</nodes>
And I want to get those out as variables to use down the line in an FME workbench. At the moment I am relying on the order of them in a Test Filter (i.e. If @Value(_attr_name) = nodes.node{0}.properties.property{1} = first_name then put it on an output port of 'first_name') - however I hate relying on the order and I'm sure there is a better way of getting them out.
Any help would be much appreciated.
Ramo