Make simplexml respect opml tags order when serializing

This commit is contained in:
Shinokuni 2019-11-09 18:21:45 +01:00
parent d2bca6f8e8
commit 6c8236d67d

View File

@ -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?,