parse_pubmed_xml function

Parse PubMed XML data with optimized memory usage