Skip to main content
Solved

Extracting specific lines of data from XML


I am new to FME, and I am trying to extract data of specific lines of the XML, but once I import the XML, I am unable to find these lines referenced anywhere. Is there a transformer that I could use that I could define the required line (by attribute contained in that line if possible) that would then extract the data so I could consume it

Best answer by erik_jan

The XML reader allows you to specify the element you want to see as feature types in your FME workspace.

You can find that setting here:

View original
Did this help you find an answer to your question?

2 replies

nathanatsafe
Safer
Forum|alt.badge.img+7

Hi @gavin_082, thanks for your question!

For a more detailed discussion of your technical issue, would you mind posting a sample of your data and your workspace to this posting?

I'm not an XML expert, but I wonder if an XQuery function might solve your problem. Take a look at this article and this article for some more information. XQueries allow you to extract data from within an XML document in a similar way to an SQL statement. They can be useful if you know where in your XML document the desired data is (ie between which tags).

Hope this helps!

 

Thanks,

 

Nathan

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • Best Answer
  • October 6, 2017

The XML reader allows you to specify the element you want to see as feature types in your FME workspace.

You can find that setting here:


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