adding @XmlAttribute to a simple type

masone

New Member
I am trying to add an attribute using javax.xml.bind.annotation to a simple type (String in this case)so i want this\[code\]<myObj><stuff foo="bar">data</stuff></myObj>\[/code\]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!
 
Back
Top