Closed Mukesh1507 closed 4 years ago
Parsing not work. outageInfoData is null.
1.Response- <?xml version="1.0" encoding="utf-8"?>
import com.tickaroo.tikxml.annotation.Element import com.tickaroo.tikxml.annotation.Path import com.tickaroo.tikxml.annotation.Xml @Xml data class OutageResponse constructor( @Path("DataSet/diffgr:diffgram/NewDataSet") @Element(name = "Table1") val outageInfoData : List?)
//Outage Detail
import com.tickaroo.tikxml.annotation.PropertyElement import com.tickaroo.tikxml.annotation.Xml @Xml data class OutageDetails constructor( @PropertyElement(name = "OPEN_TIME") var openTime: String? = null, @PropertyElement(name = "SCHE_TIME") var scheTime: String? = null, @PropertyElement(name = "CAUSE") var cause: String? = null, @PropertyElement(name = "ID") var id : String? = null, @PropertyElement(name = "MINUTES") var minutes: String? = null, @PropertyElement(name = "AREA_CODE") var areaCode: String? = null, @PropertyElement(name = "REASON") var reason: String? = null )
Hi @Mukesh1507
can you tell me which version of tikxml you are using?
@Bodo1981 version - 0.9.3-SNAPSHOT
please try the newest snapshot version 0.9.0_7-SNAPSHOT -> sorry for the unconfenient versioning :-(
Parsing not work. outageInfoData is null.
1.Response- <?xml version="1.0" encoding="utf-8"?>
import com.tickaroo.tikxml.annotation.Element import com.tickaroo.tikxml.annotation.Path import com.tickaroo.tikxml.annotation.Xml @Xml data class OutageResponse constructor( @Path("DataSet/diffgr:diffgram/NewDataSet") @Element(name = "Table1") val outageInfoData : List?)
//Outage Detail
import com.tickaroo.tikxml.annotation.PropertyElement import com.tickaroo.tikxml.annotation.Xml @Xml data class OutageDetails constructor( @PropertyElement(name = "OPEN_TIME") var openTime: String? = null, @PropertyElement(name = "SCHE_TIME") var scheTime: String? = null, @PropertyElement(name = "CAUSE") var cause: String? = null, @PropertyElement(name = "ID") var id : String? = null, @PropertyElement(name = "MINUTES") var minutes: String? = null, @PropertyElement(name = "AREA_CODE") var areaCode: String? = null, @PropertyElement(name = "REASON") var reason: String? = null )