Hello,
I want to write an IVR application that allows changing agent skill levels. Therefore I use a REST step to retriev agent skills vorm REST API. I receive a XML document like shown below. Since agents do have several skills, the XML contains a list of skills, their names and the current competence level.
My script has to iterate through each <skillCompetency> in the <skillMap>.
Does anyone have an idea what XML Path has to be used to go through each <skillCompetency> within a loop and get skill name and cempetency level of each <skillcompetency> entry?
<?xml version="1.0" encoding="UTF-8"?>
<resource>
<self>http://10.100.101.91/adminapi/resource/agent1</self>
<userID>agent1</userID>
<firstName>first</firstName>
<lastName>agent</lastName>
<extension>169</extension>
<alias></alias>
<skillMap>
<skillCompetency>
<competencelevel>5</competencelevel>
<skillNameUriPair name="skill1">
<refURL>http://10.100.101.91/adminapi/skill/2</refURL>
</skillNameUriPair>
</skillCompetency>
<skillCompetency>
<competencelevel>5</competencelevel>
<skillNameUriPair name="skill2">
<refURL>http://10.100.101.91/adminapi/skill/3</refURL>
</skillNameUriPair>
</skillCompetency>
</skillMap>
<autoAvailable>false</autoAvailable>
<type>2</type>
<team name="test">
<refURL>http://10.100.101.91/adminapi/team/2</refURL>
</team>
<primarySupervisorOf>
<supervisorOfTeamName name="test">
<refURL>http://10.100.101.91/adminapi/team/2</refURL>
</supervisorOfTeamName>
</primarySupervisorOf>
<secondarySupervisorOf/>
</resource>