This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

XML as 'destop database'??

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
Thanks,
Jim
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic