I have a object this look like:
public class RM {
private int id;
private String name;
private String being_in_force_dt;
private String modify_dt;
private AREA AREA;
private String vehicle;
}
A date from this object I have in xml and now I have a probleme how I can put a value to field for example name , when I have a :
String attName = xpp.getAttributeName(i); // here String = name
xpp.getAttributeValue(i) // and here is a value
I did this :
if(attName.equals("id"))
rm.setId(Integer.parseInt(xpp.getAttributeValue(i)));
But maybe is better soluttion