IPCC CRS Editor - XML file traversal

Unanswered Question
Jul 11th, 2007
User Badges:

I?ve set up an xml file with the below format and I am trying to figure out how to

Traverse it so I can process each date. I?m not sure what the syntax is. I can get the first one with no

Problem. Any help is much appreciated.

<?xml version="1.0" encoding="utf-8" ?>






<Name>New Year</Name>




<Name>Memorial Day</Name>




<Name>Fourth of July</Name>




<Name>Labor Day</Name>








<Name>Thanksgiving Observance</Name>








  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)

I think Cisco publish a version of this. Perhaps the easiest thing is to search Cisco.com for it.

All you have to do is change the XML names to xx, xx etc. Then use a set step with the expression editor to return a new string like:


// increment


String s = new String();

s = "Holiday" + holidayEntryNum;

return s;


then look for

"/descendant::Holidays/child::" + Holiday

with your Get XML Document step. And of course, loop until dates match.



joannemarie Thu, 07/12/2007 - 05:41
User Badges:

I have already redone it that way, and it works well. But, I would think there would be a way to interate through it when using instead of . I just do not know the syntax that Cisco expects and cannot find documentation on it.

Thanks for the response, I appreciate it.


joluc_denmark Thu, 07/12/2007 - 05:45
User Badges:

You should't use that script/xml-file as it is ineffiecient.

Instead create the current date in your script (such as '25-12-07'and add the letter-prefix A or some other letter..) and then parse this xml-file instead:



It is more efficient (if if doesn't find anything, its not a holiday) and gives you a few more options (as illustrated).




This Discussion