Skip to main content
Question

Reading from XML

  • June 9, 2021
  • 2 replies
  • 34 views

ingalla
Contributor
Forum|alt.badge.img+10

I am trying to read XML data from the following URL, which is for the food standards data in the UK. Whatever method i use to read this data i just get errors. Can anyone tell me how to extract this data correctly...

 

https://ratings.food.gov.uk/OpenDataFiles/FHRS131en-GB.xml

 

2 replies

david_r
Celebrity
  • 8392 replies
  • June 9, 2021

When creating the reader, make sure to tell FME which elements (XML tag) should constitute a feature, e.g.

xmlelementstomatch


ingalla
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 33 replies
  • June 9, 2021

Perfect, thank you - missing the obvious!!!