I\'m working with XML files from clinicaltrials.gov, which have a structure like this:
... ...
Here is an example
ns <- getNodeSet(xml, '//clinical_results/outcome_list/outcome/analysis_list/analysis/method') element_cnt <-length(ns)) strings<-paste(sapply(ns, function(x) { xmlValue(x) }),collapse="|"))