I am trying to find a way to marshall classes that i have no access to. I am trying to achieve something like this: @XmlRootElement(name="bar") class Bar { @XmlAttribute private Foo foo; @XmlAttribute private String baz; } which should result in a xml file like this: <bar baz="stuff" foo="otherstuff"/> Is this possible? I tried to fiddle with @XmlJavaTypeAdapter with no sucess.
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update