Код: Выделить всё
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;
}
Код: Выделить всё
String attName = xpp.getAttributeName(i); // here String = name
xpp.getAttributeValue(i) // and here is a value
Код: Выделить всё
if (attName.equals("id"))
rm.setId(Integer.parseInt(xpp.getAttributeValue(i)));
Подробнее здесь: https://stackoverflow.com/questions/450 ... field-name
Мобильная версия