From the XML standpoint these two forms of an empty element tag are identical. If you want to generate the start-close version, the only way I can think of offhand is to give JiBX a zero-length string as the content of the element. You could use a get-method/set-method to do this, ignoring the set-method and always returning "" from the get-method; that way you don't need to add any fields to your class.

 - Dennis

Felix Lo wrote:

Hi,

I'm wondering how you can just create an empty element tag of that format 
[<element></element>]

without binding it to any class fields
I know with

<structure name="element"></structure>

you can get only

<element/>

if there's no value or another structure as a child of the element structure..

Does anybdoy know the way?

Thanks,

Felix.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to