[cisco-voip] IPCC Script: Get XML Document Data (traversal)

Jonathan Charles jonvoip at gmail.com
Mon Jul 16 11:13:47 EDT 2007


This really depends a LOT on what data your script is looking for...

For example, see the attached XML... this is one that we just populate
dates with and do a simple true false (get date, does date match one
of these? If yes, then it is a holiday).

This may be a simpler way of doing what you want to accomplish...


Jonathan


On 7/11/07, Joanne Thompson <JoanneThompson at abbottsystemsinc.com> wrote:
>
>
>
>
> 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" ?>
>
> <!--
>
>      Holiday.xml
>
>      -->
>
> <Holidays>
>
>   <Holiday>
>
>     <Name>New Year</Name>
>
>     <Date>01/01/2007</Date>
>
>   </Holiday>
>
>   <Holiday>
>
>     <Name>Memorial Day</Name>
>
>     <Date>05/31/2007</Date>
>
>   </Holiday>
>
>   <Holiday>
>
>     <Name>Fourth of July</Name>
>
>     <Date>07/04/2007</Date>
>
>   </Holiday>
>
>   <Holiday>
>
>     <Name>Labor Day</Name>
>
>     <Date>09/03/2007</Date>
>
>   </Holiday>
>
>   <Holiday>
>
>     <Name>Thanksgiving</Name>
>
>     <Date>11/22/2007</Date>
>
>   </Holiday>
>
>   <Holiday>
>
>     <Name>Thanksgiving Observance</Name>
>
>     <Date>11/23/2007</Date>
>
>   </Holiday>
>
>   <Holiday>
>
>     <Name>Christmas</Name>
>
>     <Date>12/31/2007</Date>
>
>   </Holiday>
>
> </Holidays>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dates.xml
Type: text/xml
Size: 450 bytes
Desc: not available
Url : https://puck.nether.net/pipermail/cisco-voip/attachments/20070716/aa1ff6a7/attachment-0001.xml 


More information about the cisco-voip mailing list