a) Write code using JAXB to parse through an XML string and return the data. No main
Fantastic news! We've Found the answer you've been seeking!
Question:
a) Write code using JAXB to parse through an XML string and return the data.
No main class so return the value. Hint: Will need XmlStreamReader and Unmarshalling.
b) Create an @XmlElement Annotation class to map elements from the XML string.
XML String -
Expected outpout -
{
"Books": {
"book": [
{
"name": "John",
"author": "Josh"
},
{
"name": "Ben",
"author": 10
}
]
}
}
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: