XML document
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 05:53 AM
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
- Labels:
-
UCCX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 07:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 01:46 AM
Thank you for your reply
I am not an XML expert, how would you collaps both fields together? Can you give an example using the above XML?
Thanks you!
JH

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 03:18 AM
These have helped me over the years:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 05:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2022 07:02 AM
Thank you all
In the end with some searching I have now this:
<Mobile-Numbers>
<employees>
<num id="1111111111">TEXT1</num>
<num id="2222222222">TEXT2</num>
<num id="3333333333">TEXT3</num>
</employees>
</Mobile-Numbers>
"//num[@id='"+ CallingNumber +"' ]"
And this works for me. I only need one variable (the TEXT) if you need more variables, then this is not workinmgh I believe
JH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2022 03:19 PM
