aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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

Java xman
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
Marshal

Joined: Mar 22, 2005
Posts: 35237
    
    7
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.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Using Apache Digester to serialize the definition of a class
 
Similar Threads
inner classses
Plot update error - JMathPlot
Object casting
Problem in Generic Method Declaration