publish courses in XML

I am think to separate presentation layer of the courses into its on standalone web application. Most likely i will be using Spring framework (Java based) to build it. For this to work I would need to publish courses and lessons created in Opigno outside its eco system in XML or JSON format. Please share you r thoughts on how to make it work.