This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Persistence and long time storage best practice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Persistence and long time storage best practice" Watch "Persistence and long time storage best practice" New topic
Author

Persistence and long time storage best practice

Karim Nasser
Greenhorn

Joined: Sep 04, 2002
Posts: 11
Hi ,
My application needs to store a business object as XML, no fancy processing is needed on the XML , just reading and writing the business objects on the files system for long storage, what is the best practice, I am new to XML worl in java, I can see alot of parsers and alot open source packages that can do the job (xerces,digester,dom,sax...), what is the best approach to do this
best regards
Kareem
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You might want to check out XMLEncoder (part of J2SE 1.4) and XStream (very simple mapping between classes and XML) as well as consider the use of an XML database such as eXist or Xindice (depending on your needs for querying the serialized business objects).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Persistence and long time storage best practice
 
Similar Threads
do i need special hardware/software
SCJP Intensive Training
Hey can you give me some suggestions on how to estimate time...
Which LayoutManager To Use ?
Transform text file to xml