Re: [R] Package XML: Parse Garmin *.tcx file problems

2011-03-30 Thread Duncan Temple Lang
Hi Michael Almost certainly, the problem is that the document has a default namespace. You need to identify the namespace in the XPath query. xpathApply() endeavors to make this simple: xpathApply(doc2, "//x:TotalTimeSeconds", xmlValue, namespaces = "x") I suspect that will give you back some

[R] Package XML: Parse Garmin *.tcx file problems

2011-03-30 Thread Folkes, Michael
I'm struggling with package XML to parse a Garmin file (named *.tcx). I wonder if it's form is incomplete, but appreciably reluctant to paste even a shortened version. The output below shows I can get nodes, but an attempt at value of a single node comes up empty (even though there is data there.