Skip to main content
Solved

Issues with XMLFragmenter

  • January 3, 2023
  • 2 replies
  • 109 views

nedwaterman
Contributor
Forum|alt.badge.img+9

Hi,

I'm trying to extract XML from the attached file. I'm using an XMLFormatter before hand which extracts the loggerId I need to match to a database table.

I can extract the XML using the fragmenter, but unless I use the 'Merge Attributes from Input Feature' the loggerID is not carried through. If I do this. FME managed to burn through 700GB of my hard drive and then fails due to lack of memory.

Any idea how I can carry through my original XML attributes through to the fragments without having to do this?

 

Best answer by david_r

First of all, be sure remove the incoming attribute containing the full XML after the XMLFragmenter. Otherwise you'll have a copy of the entire XML document for each feature output by the XMLFragmenter. That can eat up a lot of memory.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • Best Answer
  • January 3, 2023

First of all, be sure remove the incoming attribute containing the full XML after the XMLFragmenter. Otherwise you'll have a copy of the entire XML document for each feature output by the XMLFragmenter. That can eat up a lot of memory.


nedwaterman
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • January 3, 2023

Yes - that's much better. Cheers David!