XML2R is a framework that reduces the effort required to transform XML content into number of tables while preserving parent to child relationships.
conda install conda-forge::r-xml2r