cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
790
Views
10
Helpful
6
Replies

XML document

j.huizinga
Level 6
Level 6

Hello

I want to have a UCCX script that checks an XML file and using XPATH I can get somw information (in this case the name)

This is the XML

<Mobile-Numbers>
<employees>
<num>1234567890</num>
<name>John Smit</name>
</employees>
</Mobile-Numbers>

The XPATH would be: /Mobile-Numbers/employees[num="1234567890"]/name to get the name

But in the XML document each person requires two lines (<num> and <name>)

Is it not possible to have the number and the name on one line?

Thanks

 

JH

6 Replies 6

The easiest path will be to get this in two steps, one per line. Another method would be to change your XML format and collapse both fields together. Finally, the last one is to create a custom Java to do this, but that's way too much effort.

david