private static List<Stat> extractXml(List<String> str) {
        List<Stat> list = new ArrayList<Stat>();
        StringBuilder xmlAsString = new StringBuilder();
        boolean xml = false;
        
        for (String s : str) {
            if (s.startsWith("<hlr>")) { 
                xml = true; 
                xmlAsString = new StringBuilder(); 
            }
            if (s.equals("</hlr>")) {
                xml = false;
                xmlAsString.append(s);
                // parse xml
                Stat stat = parseXml(xmlAsString.toString());
                //System.out.println("XML: " + xmlAsString);
                //System.out.println(stat);
                list.add(stat);
            }

            if (xml) xmlAsString.append(s);
        }
            
        return list;
    }