I have the following function that generates a ArrayList
but at the moment of traversing it, it returns true. How can I see the content?
public static ArrayList ordenaNodos(ArrayList nodeList){
ArrayList cfdiList = new ArrayList();
//recorre lista de nodos
String cfdi = "";
for(int i=0; i<nodeList.size(); i++){
cfdi += nodeList.get(i).toString();
if(nodeList.get(i).toString().equals("</cfdi:Comprobante>")){
cfdiList.add(new ArrayList().add(cfdi));
cfdi = "";
}
}
return cfdiList;
}