Ah, when your value is null! Miss read you there... Well, then I think you might have to write a custom converter and convert during the translation of null use an empty string instead.
Good luck! On Fri, Jan 11, 2013 at 10:32 AM, João Kreuzberg <[email protected]>wrote: > You should be able to achieve that by simply setting the content of that > variable to an empty string > > object.setName(""); > > And that should be it. > > > On Fri, Jan 11, 2013 at 10:30 AM, Fabio Ebner < > [email protected]> wrote: > >> Hi.. can someone help me? >> >> i need to create one xml TAG when my value is null >> >> Something like this. >> >> private String name; >> >> >> when i create my XML if my name are null, i need to generate <name></name> >> >> anyone know how i do this?? >> >> tks >> >> -- >> >> Fabio Ebner >> >> *Email: *[email protected] >> *Telefone: * >> *Endereço: * >> >> > > > -- > João Kreuzberg > Phone: +554535249614 > Mobile: +554599639970 > GTalk: [email protected] > MSN: [email protected] > Skype: joao.kreuzberg > -- João Kreuzberg Phone: +554535249614 Mobile: +554599639970 GTalk: [email protected] MSN: [email protected] Skype: joao.kreuzberg
