Displaying 1 result from an estimated 1 matches for "trainingcenterdatabase".
2011 Mar 30
1
Package XML: Parse Garmin *.tcx file problems
...pty (even though there is data there.
One question: Has anybody succeeded parsing Garmin .tcx (xml) files?
Thanks!
Michael
_______________________
>doc2 = xmlRoot(xmlTreeParse("HR.reduced3.tcx",useInternalNodes = TRUE))
>xpathApply(doc2, "//*", xmlName)
[[1]]
[1] "TrainingCenterDatabase"
[[2]]
[1] "Activities"
[[3]]
[1] "Activity"
[[4]]
[1] "Id"
[[5]]
[1] "Lap"
[[6]]
[1] "TotalTimeSeconds"
> xpathApply(doc2, "//TotalTimeSeconds", xmlValue)
list()
>