Hi Alexandru,
the application is a server application that
consists of several modules which provide different services. The server
application is used by several customers and every customer needs a
different set of modules. Some of the modules are quite complex and
there configuration has to be stored somehow. I know I can work with
Maps, Lists etc. but I don't think it is any better then the approach I
use now.
I want to do something like this:
Given a case class
case class Test(value1: Int, value2: String)
I want to be able to write this class to an XML file:
<Test value1="5" value2="Hello">
and read the class from an XML file using a method like
def parse[Test](elem: Element): Test
I
guess I could do this using reflection. But I would prefer to use an
existing solution if there is one. The other problem is that case
classes are immutable so I don't know if it is easy to create them from
an XML element using reflection. I could use standard classes, but I
think it would be quite conventient to use case classes.
Regards,
Michael