In R, how can I loop over repeated XML nodes, and save text values in a list?

后端 未结 3 1841
独厮守ぢ
独厮守ぢ 2021-02-10 23:43

I\'m working with XML files from clinicaltrials.gov, which have a structure like this:


  ...
  
  ...
  

        
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-11 00:28

    I don't understand why do you not use again xpathSApply, to retrieve locations as you already did for titles?!

    xpathSApply(xml_doc, "//clinical_study/location" , xmlValue)
    

提交回复
热议问题