Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] @XmlCDATA omit CDATA when element is empty?

Hi All,

I'm currently working on a project where I need to produce the same
XML as a legacy system and one funny behavior the old system has is it
always wraps each elment value in a CDATA tag. At first we thought
@XmlCDATA would be exactly what we need and it is, however the old
system omits the CDATA tag if the element value is blank.

Any ideas how I could accomplish this? I keep thinking that an
@XmlWriteTransformer might be what we need but I'm  unsure of how to
use it.


Thanks,
James


Back to the top