I am a java guy. Tag me in the comment of your question, if your question has remained unanswered (in category java, xml, jaxb ) over a long period of time (and if you are still looking for an answer).
I may or may not have solution, but I will definitely try to find one.
I am also learning javascript, in between, and trying to keep pace with the ecosystem.