Hi Daniel,

Generating the empty tag (rather than a start tag immediately followed 
by an end tag) was an enhancement put in a while ago, because the empty 
tag form is more readable (and more compact). In XML terms, the two 
representations are identical - any reasonable XML process tool should 
treat them the same. Why do you need the start tag/end tag form?

If you really do need this, the only way to generate it would be to 
modify one of the IXMLWriter subclasses in the org.jibx.runtime.impl 
package. These are the classes that actually write output, and that's 
where this is controlled. You could copy whichever class is appropriate 
as a base (or perhaps even just subclass it and override - I haven't 
looked to see if this would work), then set the IXMLWriter instance 
directly on your marshalling context.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Daniel Stankiewicz wrote:
> Joshua Davies wrote:
>   
>> I figured out a sort of cheap workaround for this - put some content in
>> there, but make it an empty string.
>>     
>
> That will not work for me. For example I use fields of type ArrayList 
> and if this list is empty it is marshalled to closed empty tag instead 
> of start/end tags.
>
>   

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to