I am trying to convert XML files to data frame, but it only shows few information in the column.
library(XML)
# LOADING TRANSFORMED XML INTO R DATA FRAME
doc <- xmlParse("SRR12545290.xml") # https://www.ncbi.nlm.nih.gov/sra/?term=SRR12545290
xmldf <- xmlToDataFrame(doc)
head(xmldf)
This only shows
│EXPERIMENT
1│SRX903458416S amplicon of salmon: distal intestinal digestaSRP279301Illumina 16S metagenomic targeted sequenci…
│SUBMISSION
1│SRA1118818
│STUDY
1│SRP279301PRJNA660116ArcticFloraDiet with or without functional feed ingredients were fed to salmon through fres…
│SAMPLE
1│SRS7285186SAMN15936598FW-Ref749906gut metagenome['Distal intestinal digesta of Atlantic salmon', 'Distal intestinal dige…
│Pool │RUN_SET
1│SRS7285186SAMN15936598│SRR12545290SRS7285186SAMN15936598
But instead, I wanted to get all the information present in the XML file. Like geographic location, host name etc.