adopted iterator pattern for medline xml file parsing