There are packages out there that manipulate XML in R. But I've spent two full days and have largely given up. There must be an existing tool to simply take a downloaded sample metadata file (for all samples in an NCBI project) from NCBI (xml format) and convert it into a data frame in R. No search or modifications needed. I would greatly appreciate help on this.