Dom4j Element in Json Simple Library to convert Dom4J element in Json Usage String jsonText = Dom4jToJson.writeToString(element);