iTrace-Dev / iTrace

Infrastructure supporting implicit eye tracking on software artifacts within the IDE and browser.
http://www.i-trace.org
2 stars 0 forks source link

JAXB xml writing and reading. #89

Closed onebenclark closed 6 years ago

onebenclark commented 7 years ago

Currently we are writing our xml entries manually. JAXB would allow us to serialize classes to and from xml. This would make this process much easier especially when reading from preexisting data.

dtpatrick0706 commented 7 years ago

Upon researching JAXB i have found a few options. The EclipseLink/MOXy iteration of JAXB will probably be our best bet. This will allow us to map to both JSON and XML. The marshaling and marshaling is fairly simple to implement. Below are the links to both MOXy examples and JAXB info.

https://wiki.eclipse.org/EclipseLink/Examples/MOXy http://www.oracle.com/technetwork/articles/javase/index-140168.html#custbind
https://examples.javacodegeeks.com/core-java/xml/bind/jaxb-json-example/

shbonita commented 6 years ago

Closed as this is no longer relevant for new infrastructure.