Using JavaScript parse XML file
Budget: $10 – $30 USD
I'm using Vue 2.0 and I need to parse an XML file that I pull from a government source. The code needs to be bullet proof with error checking. I'm currently using code like:
if (tag.querySelector('GrantList')) {
GrantList = tag.querySelector('GrantList').querySelectorAll("Grant");
}
The entire function has been written but I need the code tested and tweaked so it does not produce any errors.
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&retmode=xml&id=37585508,37579095
if (tag.querySelector('GrantList')) {
GrantList = tag.querySelector('GrantList').querySelectorAll("Grant");
}
The entire function has been written but I need the code tested and tweaked so it does not produce any errors.
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&retmode=xml&id=37585508,37579095