# Parsing xml feed

**URL:** <https://forum.kirupa.com/t/parsing-xml-feed/241555>\
**Category:** programming\
**Created:** [October 15, 2007, 3:41pm UTC](https://forum.kirupa.com/t/parsing-xml-feed/241555 "2007-10-15T15:41:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![affycons](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@affycons](https://forum.kirupa.com/u/affycons)\
**Post date:** [October 15, 2007, 3:41pm UTC](https://forum.kirupa.com/t/parsing-xml-feed/241555/1 "2007-10-15T15:41:19Z")

</div>

Not being a coder, I’m struggling with parsing an xml feed of cpc ads that comes from a keyword query.

Here’s the query string to send keyword requests to [xml.namimedia.com](http://xml.namimedia.com) from.

domain/cgi-bin/feed?par=2668&query=\<query\>&count=\<numResults\>&start=\<resultIndex\>&useragent=\<XXXX\>&ip=\<ipAddr\>

To look at the return, I replace the variables with hard coded data and send in a browser bar this for the keyword college:

domain/cgi-bin/feed?par=2668&query=college&count=3&start=1&useragent=Mozilla/4.0%20(compatible;%20MSIE%207.0;%20Windows%20NT%206.0)&ip=71.198.218.208

And I get this returned:

\<NamiFeed\>  
-\<results\>  
\<count\>1\</count\>  
-\<listing\>  
\<cpc\>0.0015\</cpc\>  
-\<description\>  
Looking for college? Find exactly what you want today.  
\</description\>  
\<displayurl\>ebay.com\</displayurl\>  
\<rank\>1\</rank\>  
\<title\>College\</title\>  
-\<url\>  
http: // [ebay.com](http://ebay.com)  
\</url\>  
\</listing\>  
\<query\>college\</query\>  
\<start\>1\</start\>  
\</results\>  
\</NamiFeed\>

So my question is how can I have this display properly either from a search box on my page or from a hard coded query sent when the page forms? :jail: .
