On the records property add:
@XmlElementWrapper(name="records")
@XmlElement(name="data")
For more information on JAXB and collection properties see:
More Related Contents:
- JAXB/Moxy Unmarshalling assigns all field values to Map rather than the specific field provided for it
- javax.xml.bind.JAXBException Implementation of JAXB-API has not been found on module path or classpath
- Can JAXB marshal by containment at first then marshal by @XmlIDREF for subsequent references?
- JAXB – Ignore element
- Using JAXB to extract inner text of XML element
- What characters do I need to escape in XML documents?
- Getting attribute using XPath
- Can Chrome be made to perform an XSL transform on a local file?
- POST XML file using cURL command line
- XSD – how to allow elements in any order any number of times?
- XPath to select multiple tags
- XSLT: How to convert XML Node to String
- Represent space and tab in XML tag?
- Finding the difference between two dateTimes in XSLT
- How to configure Spring Data JPA using XML
- XSLT Replace function not found
- How do you identify duplicate values in a numerical sequence using XPath 2.0?
- Are line breaks in XML attribute values allowed?
- Using XPath, How do I select a node based on its text content and value of an attribute?
- distinct in Xpath?
- How can I select an element with multiple classes with Xpath?
- How to webscrape secured pages in R (https links) (using readHTMLTable from XML package)?
- Convert image (jpg) to base64 in Excel VBA?
- Use JAXB to create Object from XML String
- Node.js: how to consume SOAP XML web service
- What is an xs:NCName type and when should it be used?
- What’s the best way to export UTF8 data into Excel?
- XSLT: Select following-sibling until reaching a specified tag
- Is it possible to apply normalize-space to all nodes XPath expression finds?
- How to add a newline (line break) in an XML file?