My objective is to implement XML binding in JavaScript, which may be considered unconventional. However, I require this functionality for a Thunderbird plugin and choosing JavaScript over XPCOM due to the lack of Java support in the latter. My goal is not merely serialization using JSON, but actual manipulation of XML data within JavaScript. The size of the scripts is not a concern for me.
Ideally, I would prefer to leverage existing Java code since I am more familiar with it, though my knowledge of JavaScript is limited. Therefore, I have been exploring options like GWT with JAXB for guidance: GWT and a jaxb objects
However, I found that the gwtjaxb project primarily focuses on marshaling and lacks the capability for unmarshalling in GWT client code. Am I mistaken in this assumption?
Other alternatives I have considered include Pitiri: GWT XML (xml-object-mapping)
Additionally, there is the option of utilizing Errai in GWT for mapping to JSON and then transitioning between JSON and XML using Jsonix through JSNI: Is there a JavaScript API for XML binding - analog to JAXB for Java?
POJO <=> JSON <=> XML
However, this approach appears complex and time-consuming.
If anyone has experience or insights into this matter, I would greatly appreciate your input.
Thank you!