I have a real-time XML feed that I am consuming that identifies road conditions. The issue is that the provider has changed the XML feed and grouped multiple segments with the same road condition into a single message. This message can grow and and shrink at any time. It can also add additional sub-elements to further describe the condition. In the past we were able to use an xfMap and expose the XML elements that way. This year, it has become more complicated. They've added sub-elements but FME is not resetting the list index to 0 for the sub-elements. Here are some examples:
Example with Single Route & Multiple Conditions:
Example with Multiple Routes & Single Condition:
Example with Multiple Routes & Multiple Conditions:
I've tried to leverage the XMLFragmenter, ListExploder, ListIndexer and no luck.
The ultimate goal is to have a single record for each road segment with all the corresponding road condition attributes, message information, etc.
Here are the full screenshots from Data Inspector for the above examples so you can see all the data for the specific road condition message:
Here's the XML Feed example (access to live feed is restricted):
Thanks in advance.
-Mark