I asked this question before:
Generate XML from a class
I want to do this with Java.
Is it possible to do the same with Java via attributes?
or is there a framework i can use for this purpose as well.
XStream will allow you to represent any class as an XML. You can check here for an example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With