Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ElementName attribute1="A" attribute2="B"" xsi:type="type" xmlns="some_namespace"/>
- @XmlAccessorType(XmlAccessType.FIELD)
- public class ElementName {
- @XmlElement(name = "ElementName", nillable = true)
- protected String value;
- @XmlAttribute(name = "attribute1")
- protected String attribute1;
- @XmlAttribute(name = "attribute2")
- protected String attribute2;
- }
- ElementName element = new ElementName();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement