mirror of
https://github.com/readrops/Readrops.git
synced 2024-12-28 17:41:30 +01:00
Make simplexml respect opml tags order when serializing
This commit is contained in:
parent
d2bca6f8e8
commit
6c8236d67d
@ -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?,
|
||||
|
Loading…
Reference in New Issue
Block a user