process_mesh_xml function

Process MeSH XML data with improved error handling