Skip to main content
Question

Extract attributes and value from XML

  • November 28, 2018
  • 6 replies
  • 56 views

boubcher
Contributor
Forum|alt.badge.img+11

we use An API call in order to get information from a GIS app, the response we get is an XML,

we want to convert to attribute

I used the many of the transformers there but didn't get the expected result

how we could extract all the attributes from the XML and their value

this is the XML we are getting from the rest API response we get

 

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.

6 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • November 28, 2018

Hi @boubcher

Could you save this file with xml extension and structure xml?

 

Thanks,

Danilo


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 212 replies
  • November 28, 2018

boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 212 replies
  • November 28, 2018

Hi @boubcher

Could you save this file with xml extension and structure xml?

 

Thanks,

Danilo

sure just added the file data


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • November 28, 2018

@boubcher Thanks your data.

 

I received your data and changed it incluiding in the end this xml the tag <\\layers>.

After I read this file in Workbench.

 

Thanks,

Danilo


boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • 212 replies
  • November 28, 2018

@boubcher Thanks your data.

 

I received your data and changed it incluiding in the end this xml the tag <\\layers>.

After I read this file in Workbench.

 

Thanks,

Danilo

@danilo_fme

did you use a simple XML reader or XML Flatnner , could you please share the WS ,


danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • 2077 replies
  • November 29, 2018

@danilo_fme

did you use a simple XML reader or XML Flatnner , could you please share the WS ,

I used the Reader XML - Parameters - Elements to Match

 

Thanks,

Danilo