Using Apache Digester to serialize the definition of a class
Java xman
Greenhorn
Joined: Apr 23, 2012
Posts: 12
posted
0
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 javaXMLEncoder 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
posted
0
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.