Skip to main content
Question

Extract attributes and value from XML

  • November 28, 2018
  • 6 replies
  • 42 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

 

6 replies

danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • 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
  • November 28, 2018

boubcher
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • November 28, 2018
danilo_fme wrote:

Hi @boubcher

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

 

Thanks,

Danilo

sure just added the file data


danilo_fme
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • 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
  • November 28, 2018
danilo_fme wrote:

@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
Evangelist
Forum|alt.badge.img+44
  • Evangelist
  • November 29, 2018
boubcher wrote:

@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


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