I am trying to add an attribute using javax.xml.bind.annotation to a simple type (String in this case)
so i want this
<myObj><stuff foo="bar">data</stuff></myObj>
if stuff is a string inside of ‘myObj’ , is this possible?
I know that this is most likely easy i was just having trouble finding an example that added an attribute to a non-complex type.
thanks so much!
I hate leaving things hanging… Basically what i was trying to do was to add an attribute to a String who was residing in the class , but what i had to do was to wrap that string into a pojo who had an xmlvlaue as well as other members for the attributes.
thanks