cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1116
Views
0
Helpful
2
Replies

UCCX XPath-expression with <-operator does not work

joergwesely
Level 1
Level 1

Hi all,

I'd like to read opening hours from an XML file. The UCCX version is 8.5.

The XML looks like this:

<ccdata>
   <dow>

      <dow6>

         <open>
            <from hour="8"  minute = "00" />
            <until hour="19" minute ="15" />
         </open>           
     </dow6>
  </dow>
</ccdata>

I simpified the file for testing, it should contain several open items later for every day of week.

I want to use an XPath expression to check if there's a open item for the current day of week and time.

I started with a simplified expression that should return the node for an hour value of 8:

//ccdata/dow/dow6/open/from[@hour=8 ]/@hour

that's working- it returns "8".

But if I change the expression to return the node for an hour value less then 9:

//ccdata/dow/dow6/open/from[@hour<9]/@hour

it returns nothing. If I enter the expression into a XPath test tool ("XPath Visualizer Tool") it looks ok.

Any ideas? Is that a bug?

Thanks in advance

Jörg

2 Replies 2

joergwesely
Level 1
Level 1

It must be a bug- I tried it on UCCX 7.0(1)SR03 and it's working there.

Was a TAC case ever opened on this and if so did they create a defect for it?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: