1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| int k=0;
for(int j=0;j<l.nbDocument();j++){
try
{
System.out.println(l.getVector().get(j).toString());
document = sxb.build(new File(l.getVector().get(j).toString()));
}
catch(Exception e){}
this.racine = document.getRootElement();
List list = racine.getChildren("inst");
Iterator i = list.iterator();
while(i.hasNext())
{
Element courant = (Element)i.next();
listNormalizedAndAlt.add(k, courant.getAttributeValue("normalized")+"|"+courant.getChild("alt").getText());
listOfType.add(k,courant.getAttributeValue("type"));
k++;
}
} |
Partager