From 6c8236d67dee25594cc62e38baf4f5f14cda4c28 Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Sat, 9 Nov 2019 18:21:45 +0100 Subject: [PATCH] Make simplexml respect opml tags order when serializing --- .../main/java/com/readrops/readropslibrary/opml/model/OPML.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readropslibrary/src/main/java/com/readrops/readropslibrary/opml/model/OPML.kt b/readropslibrary/src/main/java/com/readrops/readropslibrary/opml/model/OPML.kt index 4f10c6cf..1fc1f09e 100644 --- a/readropslibrary/src/main/java/com/readrops/readropslibrary/opml/model/OPML.kt +++ b/readropslibrary/src/main/java/com/readrops/readropslibrary/opml/model/OPML.kt @@ -2,8 +2,10 @@ package com.readrops.readropslibrary.opml.model import org.simpleframework.xml.Attribute import org.simpleframework.xml.Element +import org.simpleframework.xml.Order import org.simpleframework.xml.Root +@Order(elements = ["head", "body"]) @Root(name = "opml", strict = false) data class OPML(@field:Attribute(required = true) var version: String?, @field:Element(required = true) var head: Head?,