Le duplicazioni ci sono anche nell'xml? Puoi linkarlo?
Un suggerimento, dai dei nomi decenti e leggibili alle variabili.
fstElmnt, fstNmElmnt, fstNmElmntLst... Non si capisce un tubo di quello che dovrebbero contenere.codice:Element fstElmnt = (Element) fstNode; NodeList fstNmElmntLst = fstElmnt.getElementsByTagName("drug"); Element fstNmElmnt = (Element) fstNmElmntLst.item(0);