I\'m working with Java and SimpleXML
I need to parse this XML file with SimpleXML:
You must put required=false on the ArrayList of areas, some of the Pages of the XML doesn't have Areas
@Root
public class Page {
@Attribute
String src;
@Attribute
String id;
@Attribute
String thumbnail;
@ElementList (required=false)
public ArrayList<Area> areas;
}
That errors appear when I had errors in XML file (like unended tag). For someone who have the same problem and came to this post.