cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
581
Views
5
Helpful
3
Replies

UCCX Ani Based routing

lliborio05
Level 1
Level 1

Hi,

I've a long XML (~84000 lines) file that i'm using to make ANI Based routing, but my customer is giving me the file with the following format

<?xml version="1.0" encoding="utf-8"?>
<ZCCRELTFNO>
<item>
<TEL_NUMBER>5652</TEL_NUMBER>
<AGENT>agente3</AGENT>
</item>
</ZCCRELTFNO>

I can't do the "//descendant::ZCCRELTFNO/child::item["+i+"]/child::AGENT" with the increment i because the file is to long and takes to much time.

With the format below i can do it on one shot by using "//item[@TEL_NUMBER="+callingNumber+"]/@AGENT"

<?xml version="1.0" encoding="utf-8"?>
<ZCCRELTFNO>
<item TEL_NUMBER="5652" AGENT="agente3"</item>
</ZCCRELTFNO>

Is there any xpath that i can use to get the the AGENT with the Phone number without having to use the recursive i increment, like its done on the 2nd XML format.

Thanks

3 Replies 3

I'm sorry I have no clue how to actually answer or help you with your specific question, but I would say that you need to stop going down this route and just go with a DB lookup or create a webservice to give you the information you're looking for. I can't imagine that a 84000 line XML file is a sustainable method to continue doing business.

david

I know that was the right thing to do, but the customer has no license and does not want to spend some money.

Just for the reference i got it working with the following XPATH and it is really fast, ~1s to find the last entry.

"/ZCCRELTFNO/item[TEL_NUMBER="+callingNumber+"]/AGENT"

Glad you got it working and glad that you posted the answer. +5

david