This discussion is archived
0 Replies Latest reply: Sep 19, 2012 8:21 AM by user10832627 RSS

JAXB Empty Tag elements

user10832627 Newbie
Currently Being Moderated

I am trying to populate a empty xml tag with start and end tags and which does not have data in it using JAXB 2.0
currently it just places a back empty slash for the empty data tag.
I tried using nillable=true and required=true for @xmlelement but it displays the namespace in xml for the tag.

for example currenlty it displays <test/>
i want it to display as <test></test>

Please help me out.



  • Correct Answers - 10 points
  • Helpful Answers - 5 points