Parsing Rest API XML Response

Hi,

I have XML similar to given below, I want all the Element names under <Employee> tag example -  [FirstName, LastName etc.]
I have used following expression, but it is returning only "FirstName" i.e. 1st Element name.

xpathsnippet(local!result,"local-name(/Employee/*)")
I tried using different expressions like (/Employee/*/name()) but its throwing error.

<Employee>
<FirstName>Mark</FirstName>
<LastName>Fanagal</LastName>
<Age>32</Age>
<Location>London</Location>
</Employee>

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data