JAXB - marshal with java comments



I am new to JAXB and for the beginning I am marshaling some simple Java files like Hello, world!.


I want to marshal whole file, even with my comments lines placed like this:



/*
* some comment
*/

//another comment


And get them in XML in comment block:



<!--
some comment
-->

<!-- another comment -->


Is there any way to marshal java files with comments?


No comments:

Post a Comment