You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@XMLObject("//GetStationBoardResult")
public class Service
{
@XMLField("trainServices")
private TrainServices trainServices;
@XMLField("generatedAt")
private String generatedAt;
}
TrainServices
@XMLObject("//trainServices")
public class TrainServices
{
@XMLField("service")
private InnerService service;
}
InnerService
@XMLObject("//service")
public class InnerService
{
@XMLField("std")
private String std;
}
My parent class Service gets instantiated and the value for generatedAt does get fetched but anything beyond that does not get included. TrainServices is always null. Where am I going wrong?
The text was updated successfully, but these errors were encountered:
Apologies for the general question but I wasn't getting much help from StackOverflow.
I'm trying to parse some XML using
IceSoap
but it's returningnull
for some values, I think there's an error with my parse classes.This is what my XML looks like:
Service (parent class):
TrainServices
InnerService
My parent class
Service
gets instantiated and the value forgeneratedAt
does get fetched but anything beyond that does not get included.TrainServices
is always null. Where am I going wrong?The text was updated successfully, but these errors were encountered: