Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <ElementName attribute1="A" attribute2="B"" xsi:type="type" xmlns="some_namespace"/>
  2.  
  3. @XmlAccessorType(XmlAccessType.FIELD)
  4.  
  5. public class ElementName {
  6. @XmlElement(name = "ElementName", nillable = true)
  7. protected String value;
  8. @XmlAttribute(name = "attribute1")
  9. protected String attribute1;
  10. @XmlAttribute(name = "attribute2")
  11. protected String attribute2;
  12. }
  13.  
  14. ElementName element = new ElementName();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement