WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: @XmlCDATA omit CDATA when element is empty?

@XmlCDATA omit CDATA when element is empty?

by James Carr :: Rate this Message:

| View in Thread

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
_______________________________________________
eclipselink-users mailing list
eclipselink-users@...
https://dev.eclipse.org/mailman/listinfo/eclipselink-users

 « Return to Thread: @XmlCDATA omit CDATA when element is empty?