If you build an XML file like<div><br></div><div><Numbers></div><div> <Number id="5555551212">deny</Number></div><div> <Number id="5555555656">deny</Number></div><div></Numbers></div>
<div><br></div><div>You can parse it:</div><div><br></div><div>// phoneNumber is the number</div><div>// Xpath, result are of type String</div><div>// mydoc is of type Document</div><div>Set Xpath = "/descendant::Numbers/child::Number[attribute::id='" + phoneNumber + "']"</div>
<div>mydoc = CreateFileDocument("numbers.xml")</div><div>mydoc = CreateXMLDocument(mydoc)</div><div>result = GetXMLDocumentData(mydoc, xpath)</div><div>if (result == "deny") then...</div><div><br></div>
<div>Sean</div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Oct 26, 2009 at 5:40 AM, Ratko Dodevski <span dir="ltr"><<a href="mailto:rade239@gmail.com">rade239@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
No more than 35-40 numbers... maybe even less<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Oct 26, 2009 at 11:27 AM, Philip Walenta <span dir="ltr"><<a href="mailto:pwalenta@wi.rr.com" target="_blank">pwalenta@wi.rr.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)">How big of a list of numbers will this xml file contain?</span></p>
<p class="MsoNormal"><span style="font-size:11pt;color:rgb(31, 73, 125)"> </span></p>
<div style="border-style:solid none none;border-color:rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;border-width:1pt medium medium;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10pt">From:</span></b><span style="font-size:10pt">
<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a> [mailto:<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">cisco-voip-bounces@puck.nether.net</a>] <b>On
Behalf Of </b>Ratko Dodevski<br>
<b>Sent:</b> Monday, October 26, 2009 4:42 AM<br>
<b>To:</b> <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> [cisco-voip] UCCX Script</span></p>
</div><div><div></div><div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi,<br>
Can someone help me a script? I need a script that would look in a xml file
that contains list of telephone numbers and based on that search it allows or
denies the call.<br>
<br>
thanks in advanced<br clear="all">
<br>
-- <br>
Ratko</p>
</div></div></div>
</div>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><font color="#888888">Ratko<br>
</font><br>_______________________________________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" target="_blank">https://puck.nether.net/mailman/listinfo/cisco-voip</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sean Walberg <<a href="mailto:sean@ertw.com">sean@ertw.com</a>> <a href="http://ertw.com/">http://ertw.com/</a><br>
</div>