<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Convert Garmin 705 Navigator TCX Format using LINQ to XML and Data Objects &#8211; Article 1</title>
	<atom:link href="http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/</link>
	<description>Specializing in Microsoft Web and Database Technologies</description>
	<lastBuildDate>Fri, 30 Jul 2010 08:27:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: justin</title>
		<link>http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/comment-page-1/#comment-27720</link>
		<dc:creator>justin</dc:creator>
		<pubDate>Mon, 14 Jun 2010 22:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/?p=353#comment-27720</guid>
		<description>You&#039;ve probably long since forgotten about this but you are the &quot;I&#039;m Feeling Lucky&quot; for the Google query &quot;C# tcx file parser&quot; so I figured I&#039;d post a quick bug.  Your initial query looks for the Activities node (root.Descendants(ns1 + &quot;Activities&quot;)) when it should actually be iterating the Activity nodes.  That way if the user has the GPS track a multi-sport activity, like a triathlon, the laps get broken out into multiple Activity objects.  Of course you would need to have the method return the generic List and not the SingleOrDefault.</description>
		<content:encoded><![CDATA[<p>You&#8217;ve probably long since forgotten about this but you are the &#8220;I&#8217;m Feeling Lucky&#8221; for the Google query &#8220;C# tcx file parser&#8221; so I figured I&#8217;d post a quick bug.  Your initial query looks for the Activities node (root.Descendants(ns1 + &#8220;Activities&#8221;)) when it should actually be iterating the Activity nodes.  That way if the user has the GPS track a multi-sport activity, like a triathlon, the laps get broken out into multiple Activity objects.  Of course you would need to have the method return the generic List and not the SingleOrDefault.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/comment-page-1/#comment-27670</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 29 May 2010 18:19:52 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/?p=353#comment-27670</guid>
		<description>Thank you for a great program, I am a beginner in Linq, and I see how to get the information in Laps, but how do you get at the information in Tracks and Positionx? How does one list lead to the next?

Mark</description>
		<content:encoded><![CDATA[<p>Thank you for a great program, I am a beginner in Linq, and I see how to get the information in Laps, but how do you get at the information in Tracks and Positionx? How does one list lead to the next?</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dutchnomad</title>
		<link>http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/comment-page-1/#comment-27555</link>
		<dc:creator>dutchnomad</dc:creator>
		<pubDate>Wed, 12 May 2010 13:21:52 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/?p=353#comment-27555</guid>
		<description>Is the zip file still somewhere available?</description>
		<content:encoded><![CDATA[<p>Is the zip file still somewhere available?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/comment-page-1/#comment-20376</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Sun, 15 Mar 2009 15:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/?p=353#comment-20376</guid>
		<description>Very interesting article,

I&#039;m in search of something a bit more unique. Every search I&#039;ve done point to the same thing.

I&#039;m trying to find devices, similarly to what the API is doing, but from code behind. Seeing that plug in is an ActiveX object I assume that wrapping the assembly in a managed class would give me the required functionality to do this. However, I cannot seem to either &quot;unlock&quot; the plugin in order to start the FindDevices() methods.

Have you tried this by any chance? Or know of any link I can point to, to help me out?

Regards,

Eric</description>
		<content:encoded><![CDATA[<p>Very interesting article,</p>
<p>I&#8217;m in search of something a bit more unique. Every search I&#8217;ve done point to the same thing.</p>
<p>I&#8217;m trying to find devices, similarly to what the API is doing, but from code behind. Seeing that plug in is an ActiveX object I assume that wrapping the assembly in a managed class would give me the required functionality to do this. However, I cannot seem to either &#8220;unlock&#8221; the plugin in order to start the FindDevices() methods.</p>
<p>Have you tried this by any chance? Or know of any link I can point to, to help me out?</p>
<p>Regards,</p>
<p>Eric</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart Lodge</title>
		<link>http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/comment-page-1/#comment-18154</link>
		<dc:creator>Stuart Lodge</dc:creator>
		<pubDate>Thu, 05 Feb 2009 09:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/?p=353#comment-18154</guid>
		<description>Thanks for the post - wish I&#039;d stumbled across it 2 months ago. I went the &quot;xsd /classes&quot; route to parsing tcx files instead - but this looks cleaner.

I wonder which works faster...</description>
		<content:encoded><![CDATA[<p>Thanks for the post &#8211; wish I&#8217;d stumbled across it 2 months ago. I went the &#8220;xsd /classes&#8221; route to parsing tcx files instead &#8211; but this looks cleaner.</p>
<p>I wonder which works faster&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randika</title>
		<link>http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/comment-page-1/#comment-14413</link>
		<dc:creator>Randika</dc:creator>
		<pubDate>Wed, 24 Dec 2008 10:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/?p=353#comment-14413</guid>
		<description>Thank you for been generous</description>
		<content:encoded><![CDATA[<p>Thank you for been generous</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://peterkellner.net/2008/08/16/convert-garmin-705-navigator-tcx-format-using-linq-to-xml-and-data-objects-article-1/comment-page-1/#comment-3686</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Tue, 16 Sep 2008 12:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://peterkellner.net/?p=353#comment-3686</guid>
		<description>HI, 

very good idea and i think the code is also very smart, but sorry i dont speak c#.net. 

I for myself tried to do a tcx lap combiner and the first tests where not that bad, but the code was very unhandy. 

Now i want to take a look at your solution with LINQ. I tried to convert to vb.net (witch i speak) but stuck in garmin.cs line 41... 

COULD you help or even better do you see a way how to combine c#.net and a vb.net development, because i think you intension to do a tcx tool is also in my interests. I´ve got enough ideas what else we can do with the Edge files.

That the output i´v got form converting.....
Public Class GarminUtils
	Public Shared Function ConvertTCS(fileName As String) As Activity
		Dim root As XElement = XElement.Load(fileName)
		Dim ns1 As XNamespace = &quot;http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2&quot;

		Dim activities As IEnumerable(Of Activity) = From activityElement In root.Descendants(Convert.ToString(ns1) &amp; &quot;Activities&quot;) _
			Select New Activity()

		Return activities.SingleOrDefault()
	End Function
End Class</description>
		<content:encoded><![CDATA[<p>HI, </p>
<p>very good idea and i think the code is also very smart, but sorry i dont speak c#.net. </p>
<p>I for myself tried to do a tcx lap combiner and the first tests where not that bad, but the code was very unhandy. </p>
<p>Now i want to take a look at your solution with LINQ. I tried to convert to vb.net (witch i speak) but stuck in garmin.cs line 41&#8230; </p>
<p>COULD you help or even better do you see a way how to combine c#.net and a vb.net development, because i think you intension to do a tcx tool is also in my interests. I´ve got enough ideas what else we can do with the Edge files.</p>
<p>That the output i´v got form converting&#8230;..<br />
Public Class GarminUtils<br />
	Public Shared Function ConvertTCS(fileName As String) As Activity<br />
		Dim root As XElement = XElement.Load(fileName)<br />
		Dim ns1 As XNamespace = &#8220;http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2&#8243;</p>
<p>		Dim activities As IEnumerable(Of Activity) = From activityElement In root.Descendants(Convert.ToString(ns1) &amp; &#8220;Activities&#8221;) _<br />
			Select New Activity()</p>
<p>		Return activities.SingleOrDefault()<br />
	End Function<br />
End Class</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 1/28 queries in 0.026 seconds using disk
Content Delivery Network via cdn.peterkellner.net

Served from: peterkellner.net @ 2010-07-30 09:36:09 -->