Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Question 15 Thread results to One container?

 
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
 
Bartender
Posts: 4107
72
Hibernate Fedora Chrome
  • 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 .
 
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic