Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6901981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:44:29+00:00 2026-05-27T07:44:29+00:00

I want to parse Xml. In the xml there are multiple items, each item

  • 0

I want to parse Xml. In the xml there are multiple items, each item has a description, image and url amongst other things. I want to group all the items with the same description together and then have each item as a menu item. when clicking on the menu item it opens the list of all the items for that description.

Im thinking of using a HashTable with the key being the description and an ArrayList. Is there any other way?

Example

Something that I cannot figure out is this :

    Description    URL                 Image

    Cars        www.ford.com         www.ford.com/image.jpg
    Cars        www.vw.com           www.vw.com/image.jpg
    Boat        www.suzuki.com       www.suzuki.com/image.jpg

So Cars would be the key in the Hashmap, how do I have 2 Strings? and then there would need to be 2 entries for Cars.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:44:30+00:00Added an answer on May 27, 2026 at 7:44 am

    I support your solution.

    I am thinking about encapsulate these three attributes as an object, in case that you don’t care about the order, i refer using HashTable with the key of the description and values are ArrayList with the classes you have created which has the three attributes you described. With this solution, you can conveniently access all the objects you want.

    Hope to help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a xml URL file in which there are white spaces i want
I want to parse a large XML file and I have two options: Perl
I want to parse the following XML document to resolve all entities in it:
In my C++ program I want to parse a small piece of XML, insert
I parse a big xml document with Sax, I want to stop parsing the
Like the title says, I want to parse XML in my iPhone application, but
I want to know how to parse XML data on a BlackBerry. I read
I only want to parse an interested element of xml (e.g. see below: class
I have a word document I want to parse with C#. There are plenty
I want to parse and XML file in an iPhone app without going to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.