I have an xml file like this:
<TABLES>
<TABLE NAME="abcd" TIME="2013.05.27 00:00:00" >
<LINES>
<LINE TIME="2013.05.27 00:00:00" BEGINE="787465" END="787465"/>
</LINES>
<SPECIAL>
<DAY MASK="128" DATE="16714778" />
<WEEK NAME="abcde" PARAM="128" />
</SPECIAL>
</TABLE>
</TABLES>
Problem is that, within the SPECIAL tag there are 2 types of elements DAY and WEEK. I am not able to parse it via jackson, is there any special way to handle it? I can parse the rest via POJO without any problem, but for special I need to set up 2 different classes
// DAY
class SPECIAL(
@JacksonXmlProperty(localName = "MASK")
val mask: String,
@JacksonXmlProperty(localName = "DATE")
val date: Int,
)
// WEEK
class SPECIAL(
@JacksonXmlProperty(localName = "NAME")
val name: String,
@JacksonXmlProperty(localName = "PARAM")
val param: Int,
)