Skip to main content

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

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

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:


Reply