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

Turpin, Mark mark.turpin at calence.com
Mon Jul 16 13:19:01 EDT 2007


You can totally do this.  Descendant = list title, Child = the holiday.

<TopNode>
 <Node>
  <AnotherChildWithin>your data</AnotherChildWithin>
 </Node>
</TopNote>

-mark

-----Original Message-----
From: cisco-voip-bounces at puck.nether.net
[mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of Joanne Thompson
Sent: Monday, July 16, 2007 10:20 AM
To: Jonathan Charles
Cc: cisco-voip at puck.nether.net
Subject: Re: [cisco-voip] IPCC Script: Get XML Document Data (traversal)

Thanks for the response. I have already changed my xml to have this type
of format and it works.

For my own knowledge, I would be interested in knowing how to traverse
the original xml,
getting each <Holiday> node within the <Holidays>.  For example, within
an ipcc script, get the first 
<Holiday> node, processing it, and then getting the next <Holiday> node,
etc.  I'm not sure what the
Syntax would be to get the sibling nodes.


More information about the cisco-voip mailing list