This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Using Apache Digester to serialize the definition of a class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Using Apache Digester to serialize the definition of a class" Watch "Using Apache Digester to serialize the definition of a class" New topic
Author

Using Apache Digester to serialize the definition of a class

Jack Silver
Greenhorn

Joined: Apr 23, 2012
Posts: 12
Is there a way to use Digester to say Serialize and Deserialize into XML the definition of a class.
I need to store formulas in a static class and I thought perhaps somehow Digester will allow me to do this??? Does any have experiences with Digester or its successor for the purpose of
building class from the XML specifically I want to represent classes in XML so when loaded create workable classes? Any idea how to do this.
Already tried the built in java XMLEncoder but that did not work with details presented from a pre-defined class e.g

Using:
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Digester reads XML files and populates existing classes with the values contained in the file, nothing more and nothing less. It can't create classes you don't already have, and it also has no facilities for writing out XML or anything else.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Apache Digester to serialize the definition of a class
 
It's not a secret anymore!