Tickaroo / tikxml

Modern XML Parser for Android
Apache License 2.0
423 stars 44 forks source link

Parsing not work #143

Closed Mukesh1507 closed 4 years ago

Mukesh1507 commented 4 years ago

Parsing not work. outageInfoData is null.

1.Response- <?xml version="1.0" encoding="utf-8"?>

28-02-2020 10:00:00 28-02-2020 14:40:00 PLANNED SHUTDOWN P10022000280 195 MANDAWALI FAZALPUR BLOCK B-JOSHI COLONY TRANSFORMER(MAINTENANCE ACTIVITY) 28-02-2020 10:00:00 28-02-2020 14:40:00 PLANNED SHUTDOWN P10022000280 195 BLOCK B-JOSHI COLONY TRANSFORMER(MAINTENANCE ACTIVITY)
  1. Parser

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 )

Bodo1981 commented 4 years ago

Hi @Mukesh1507

can you tell me which version of tikxml you are using?

MukFlex commented 4 years ago

@Bodo1981 version - 0.9.3-SNAPSHOT

Bodo1981 commented 4 years ago

please try the newest snapshot version 0.9.0_7-SNAPSHOT -> sorry for the unconfenient versioning :-(