When marshaling an object via JAXB with a StringBuffer attribute, that attribute becomes blank. I wrote a small program to demonstrate the problem:
The output is as follows:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><jaxbTest><valueOne>12345</valueOne><valueTwo/></jaxbTest>
Does anyone know why "valueTwo" is not being marshaled correctly? BTW, i am using
java 1.6.0_22.
Thanks!!!