• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Best way to keep data?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am sort of new to Java (I'm fairly good with Perl), and I have this pet project that I'd like to do entirely in Java.
It's basically an app to organize collections (CDs, etc). I don't want to use databases, so I thought of using XML to store the data, and this is where I ran into my first major doubt: how do I access/map the XML data in Java?
My initial idea was to parse the XML and put everything into hashtables (common solution in Perl), but I suspect there's a better (more Java-like) way to do this...
Of course, once the data is mapped in memory, I must be able to easily sort through it, as well as pick any one individual set.
I appreciate your ideas/input. Thanks!
 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you looked at the Collections API in Java.
The TreeSet or HashSet classes may be useful to you.
HTH
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic