Question

Extract attributes and value from XML

  • 28 November 2018
  • 6 replies
  • 14 views

Badge +10

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

Userlevel 4
Badge +30

Hi @boubcher

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

 

Thanks,

Danilo

Badge +10

sure

data.xml

Badge +10

Hi @boubcher

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

 

Thanks,

Danilo

sure just added the file data

Userlevel 4
Badge +30

@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

Badge +10

@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 ,

Userlevel 4
Badge +30

@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

Reply