Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question 15 Thread results to One container?

 
Eric Haskins
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys/Gals,

Forgive me for some of my terminology I have worked with mostly PHP and Perl up till now. I have an app that consumes 15 feeds and it is threaded. Main spawns 15 threads making URLRequests. Now I am trying to figure out how to store the data from each feed allowing me to parse the 15 results into 1 XML result.

I am having a hard time finding any good tutorials on getting the 15 results into a container so I can parse. In PHP I would use a associative array

$feeds['ask.com'] = "Result in here";
$feeds['search.com'] = "result in here";

Thanks for any links or info.

Eric
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Haskins wrote:I am having a hard time finding any good tutorials on getting the 15 results into a container so I can parse. In PHP I would use a associative array
$feeds['ask.com'] = "Result in here";
$feeds['search.com'] = "result in here";

If you want to store the data by their domain name (assuming they are unique) using a Map is the way to go. Basics from SUN tutorial .
 
My, my, aren't you a big fella. Here, have a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!