Skip to main content
Question

XMLUpdater allways uses value of last Feature

  • November 10, 2022
  • 2 replies
  • 17 views

erikboehm
Contributor
Forum|alt.badge.img+3

I would like to replace the content of one node in XML fragments (SLD/SE), which I import into FME. I merge these fragments to other features with the values for the replacement and want to do the replacement for each feature.

With the XMLUpdater that seemed to be an easy task. Nevertheless, using the configuration as shown in the attached workspace, the contents of the node allways gets replaced by the value of the last incoming feature, not the value of the feature with the corresponding XML fragment. I read a lot of articles here in the FME community but could not find out what I am doing wrong. Do I missunderstand the function of the updater?

2 replies

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • November 10, 2022

If I've understood correctly, you need to remove the FeatureMerger, send your updates to the update port and the original xml fragments to the document port, rename the fme_basename to GeoserverLayerName and set this as the group by in your XMLUpdater

 

image


erikboehm
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • November 10, 2022
ebygomm wrote:

If I've understood correctly, you need to remove the FeatureMerger, send your updates to the update port and the original xml fragments to the document port, rename the fme_basename to GeoserverLayerName and set this as the group by in your XMLUpdater

 

image

@ebygomm​ , thank you a lot, this does exactly what I wanted to do!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings