Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate XML from a class with JAVA

Tags:

java

xml

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.

like image 894
DarthVader Avatar asked Apr 27 '26 10:04

DarthVader


1 Answers

XStream will allow you to represent any class as an XML. You can check here for an example.

like image 73
npinti Avatar answered Apr 28 '26 22:04

npinti



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!