• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

XML as 'destop database'??

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm building a small app that requires some database-like data storage but that is nowhere near needing an actual database. I'm thinking that XML is a good fit here - I'd like to build an object model, populate it from an XML file, manipulate it while the app is running and then re-persist my data back to an XML file before closing - I'm looking to XML to simplify (and hopefully completely remove!) the need for worrying about _how_ the data is put into and gotten out of the text file - parsing sucks. I need some basic searching capabilities (I know that DOM has some functionality like this) so that I could find 'employee x' based on salary, department, whatever and then insert, update, delete, etc much like I would with SQL. (In fact, I'd like to use Swing models that I could easily exchange with database-based models if/when the day comes...) Is DOM my answer? SAX? Some other object model? I'd rather use something good that exists than build something from scratch.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!