Module parser
Expand description
PubMed XML parser module
This module provides functionality for parsing PubMed EFetch XML responses into structured article metadata. The parser handles complex XML structures including authors, affiliations, MeSH terms, chemicals, and structured abstracts.
§Module Organization
preprocessing- XML cleaning and preparationdeserializers- Custom serde deserializers for complex fieldsextractors- Data extraction utilities (email, country, names)xml_types- Internal XML schema deserialization typesconverters- Conversion from XML types to public API models
§Public API
The main entry point is parse_article_from_xml, which takes a PubMed EFetch
XML response and returns a PubMedArticle.
Functions§
- parse_
article_ from_ xml - Parse article from EFetch XML response
- parse_
articles_ from_ xml - Parse multiple PubMed articles from EFetch XML response