[cisco-voip] IPCC Script: Get XML Document Data (traversal)
Joanne Thompson
JoanneThompson at abbottsystemsinc.com
Wed Jul 11 12:18:44 EDT 2007
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://puck.nether.net/pipermail/cisco-voip/attachments/20070711/50a6a938/attachment.html
More information about the cisco-voip
mailing list