Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

XML Query - Result returned to Excel

Posted on 2010-09-02
2
406 Views
Last Modified: 2012-06-27
I have this list of phone numbers and I need to find out if they are local to me.

Is there anyway to take this list of phone numbers and run it against this XML Query and return the <islocal>N</islocal> part to a cell in excel? My list has 144 phone numbers (NPA/NXX's).

NPA1 and NXX1 is my originating end, and NPA2, NXX2 is the terminating end:

http://localcallingguide.com/xmlrcdist.php?npa1=416&nxx1=423&npa2=212&nxx2=733

Thank you,
Brandon
  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE root (View Source for full doctype...)> 
- <root>
- <rcdist>
  <npa1>416</npa1>
  <nxx1>423</nxx1>
  <rc1>Toronto</rc1>
  <region1>ON</region1>
  <v1>4981</v1>
  <h1>2488</h1>
  <lata1>888</lata1>
  <npa2>212</npa2>
  <nxx2>733</nxx2>
  <rc2>New York City Zone 01</rc2>
  <region2>NY</region2>
  <v2>4997</v2>
  <h2>1406</h2>
  <lata2>132</lata2>
  <distance miles="342" km="550" />
  <islocal>N</islocal>
  <effdate />
  <plantype />
  <calltype />
  <monthly />
  <note />
  </rcdist>
  </root>

Open in new window

0
Comment
Question by:bccramer
2 Comments
 
LVL 11

Accepted Solution

by:
jkpieterse earned 500 total points
ID: 33594297
See this small article on how to work with XML in Excel:

http://www.jkp-ads.com/Articles/XMLAndExcel00.asp
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question