*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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

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: 41626
    
  55
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Apache Digester to serialize the definition of a class