# How transform Composition XML to JSONFLAT JAVA 8 **Category:** [Apps](https://discourse.openehr.org/c/app-dev/8) **Created:** 2021-03-10 18:24 UTC **Views:** 733 **Replies:** 1 **URL:** https://discourse.openehr.org/t/how-transform-composition-xml-to-jsonflat-java-8/1376 --- ## Post #1 by @luiz_Minelli Hi, I would like to know how I can transform an XML composition into a JSONFLAT in the same style as MARAND / Better in JAVA 8, because in one of the OpenehrSDK libraries it seems to contain a method for transformation but it is in JAVA 11, there are alternatives for 8 ? --- ## Post #2 by @birger.haarbrandt Only alternative might be the Better open source code but I don't know how Kotlin 1.4 relates to Java 8 regarding the JVM: https://github.com/better-care/web-template --- **Canonical:** https://discourse.openehr.org/t/how-transform-composition-xml-to-jsonflat-java-8/1376 **Original content:** https://discourse.openehr.org/t/how-transform-composition-xml-to-jsonflat-java-8/1376