Skip to main content

I'm just a newbie with fme and I'm having very basic problems when working with transformers.

First off, I want to connect several readers to the input Root port of XML Templater. The transformer shows no error when I do it, but when I run the workspace it does generate an error since only the data of one of the inputs is taken into account but the root template needs values from both inputs.

Working with sub templates is not an option for me as I will never really know what elements in my xml template will take values from one or another input. I have no control on the key-value pairs present in each json input.

If I understand this correctly, each json feature has a subset of the key-value pairs needed for the xml, but it's variable as to which json feature contains which data.

 

 

Could you not aggregate or otherwise merge your json data so that there is only one feature (containing all the key-value pairs) going to the XMLTemplater?

If I understand this correctly, each json feature has a subset of the key-value pairs needed for the xml, but it's variable as to which json feature contains which data.

 

 

Could you not aggregate or otherwise merge your json data so that there is only one feature (containing all the key-value pairs) going to the XMLTemplater?
Thank you for the tip! As I said I'm having very basic (and stupid) problems. I looked for some transformer with the 'merge' or 'aggregate' key words and found out the Aggregator transformer. It does exactly what I need.

 

 


Reply