<?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: Erlang Makes My Head Hurt</title>
	<atom:link href="http://davetroy.com/posts/erlang-makes-my-head-hurt/feed" rel="self" type="application/rss+xml" />
	<link>http://davetroy.com/posts/erlang-makes-my-head-hurt</link>
	<description>Design, Entrepreneurship, Economics and Software</description>
	<lastBuildDate>Tue, 08 May 2012 16:58:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Dave Troy</title>
		<link>http://davetroy.com/posts/erlang-makes-my-head-hurt#comment-522</link>
		<dc:creator>Dave Troy</dc:creator>
		<pubDate>Sat, 24 Oct 2009 18:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://dave.popvox.com/?p=8#comment-522</guid>
		<description>Ah, OK!  Thanks for the help.  It felt to me that it was this sort of a problem, but I wasn&#039;t sure how to proceed given my unfamiliarity with the language.&lt;br&gt;&lt;/br&gt;&lt;br&gt;I will now press ahead!  Best, Dave&lt;/br&gt;</description>
		<content:encoded><![CDATA[<p>Ah, OK!  Thanks for the help.  It felt to me that it was this sort of a problem, but I wasn&#39;t sure how to proceed given my unfamiliarity with the language.</p>
<p>I will now press ahead!  Best, Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Troy</title>
		<link>http://davetroy.com/posts/erlang-makes-my-head-hurt#comment-9</link>
		<dc:creator>Dave Troy</dc:creator>
		<pubDate>Fri, 09 Nov 2007 20:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://dave.popvox.com/?p=8#comment-9</guid>
		<description>Ah, OK!  Thanks for the help.  It felt to me that it was this sort of a problem, but I wasn&#039;t sure how to proceed given my unfamiliarity with the language.&lt;br/&gt;&lt;br/&gt;I will now press ahead!  Best, Dave</description>
		<content:encoded><![CDATA[<p>Ah, OK!  Thanks for the help.  It felt to me that it was this sort of a problem, but I wasn&#8217;t sure how to proceed given my unfamiliarity with the language.</p>
<p>I will now press ahead!  Best, Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf Wiger</title>
		<link>http://davetroy.com/posts/erlang-makes-my-head-hurt#comment-8</link>
		<dc:creator>Ulf Wiger</dc:creator>
		<pubDate>Tue, 06 Nov 2007 13:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://dave.popvox.com/?p=8#comment-8</guid>
		<description>Dave,&lt;br/&gt;&lt;br/&gt;You&#039;ve stumbled upon one of the syntactic quirks of Erlang. For historical reasons, a record is syntactic sugar for a &quot;tagged tuple&quot;. What you see in the shell is the tuple representation of a record.&lt;br/&gt;&lt;br/&gt;Since you&#039;ve included &quot;xmerl.hrl&quot; in your module, you should be able to use record syntax when matching. If you try the code in the shell, you need to make the shell aware of the record definition:&lt;br/&gt;&lt;br/&gt;9&gt; &lt;b&gt;xmerl_xpath:string(&quot;//id/text()&quot;, XML).&lt;/b&gt;&lt;br/&gt;[{xmlText,[{id,1},{entry,1}],&lt;br/&gt;          1,&lt;br/&gt;          [],&lt;br/&gt;          &quot;http://gdata.youtube.com/feeds/users/uwiger&quot;,&lt;br/&gt;          text}]&lt;br/&gt;10&gt; &lt;b&gt;code:which(xmerl).&lt;/b&gt;&lt;br/&gt;&quot;/usr/local/lib/erlang/lib/xmerl-1.1.2/ebin/xmerl.beam&quot;&lt;br/&gt;11&gt; &lt;b&gt;rr(&quot;/usr/local/lib/erlang/lib/xmerl-1.1.2/include/xmerl.hrl&quot;).&lt;/b&gt;&lt;br/&gt;[xmerl_event,&lt;br/&gt;...,&lt;br/&gt; xmlText]&lt;br/&gt;12&gt; &lt;b&gt;[#xmlText{value = Id}] = xmerl_xpath:string(&quot;//id/text()&quot;, XML).&lt;/b&gt;&lt;br/&gt;[#xmlText{parents = [{id,1},{entry,1}],&lt;br/&gt;          pos = 1,&lt;br/&gt;          language = [],&lt;br/&gt;          value = &quot;http://gdata.youtube.com/feeds/users/uwiger&quot;,&lt;br/&gt;          type = text}]&lt;br/&gt;13&gt; &lt;b&gt;Id.&lt;/b&gt;&lt;br/&gt;&quot;http://gdata.youtube.com/feeds/users/uwiger&quot;</description>
		<content:encoded><![CDATA[<p>Dave,</p>
<p>You&#8217;ve stumbled upon one of the syntactic quirks of Erlang. For historical reasons, a record is syntactic sugar for a &#8220;tagged tuple&#8221;. What you see in the shell is the tuple representation of a record.</p>
<p>Since you&#8217;ve included &#8220;xmerl.hrl&#8221; in your module, you should be able to use record syntax when matching. If you try the code in the shell, you need to make the shell aware of the record definition:</p>
<p>9&gt; <b>xmerl_xpath:string(&#8220;//id/text()&#8221;, XML).</b><br />[{xmlText,[{id,1},{entry,1}],<br />          1,<br />          [],<br />          &#8220;http://gdata.youtube.com/feeds/users/uwiger&#8221;,<br />          text}]<br />10&gt; <b>code:which(xmerl).</b><br />&#8220;/usr/local/lib/erlang/lib/xmerl-1.1.2/ebin/xmerl.beam&#8221;<br />11&gt; <b>rr(&#8220;/usr/local/lib/erlang/lib/xmerl-1.1.2/include/xmerl.hrl&#8221;).</b><br />[xmerl_event,<br />...,<br /> xmlText]<br />12&gt; <b>[#xmlText{value = Id}] = xmerl_xpath:string(&#8220;//id/text()&#8221;, XML).</b><br />[#xmlText{parents = [{id,1},{entry,1}],<br />          pos = 1,<br />          language = [],<br />          value = &#8220;http://gdata.youtube.com/feeds/users/uwiger&#8221;,<br />          type = text}]<br />13&gt; <b>Id.</b><br />&#8220;http://gdata.youtube.com/feeds/users/uwiger&#8221;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

