Return to site

GITHUB: JAXB trivial app

-> Adding data to a provided XML with Java

· github,java

I am on a SpringBoot project which uses JAXB feature, and I wanted to do a mini-POC on my own to realize how simple can it be.

The app processing:

  • Reads an XML from resources with partial data
  • Unmarshalls it to a bean
  • Adds complementary data to the bean according to business rules
  • Marshalls the fed bean into an XML
  • Outputs the XML with the missing data


You launch the app with mvn clean install.
You right-click on the class JaxbCodeGenerationDemo and run it as an application.
You Read the logs in the console where you see the status before and after.

Have a good one!