<?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: Remedial Scala: XML</title>
	<atom:link href="http://blog.darevay.com/2009/01/remedial-scala-xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.darevay.com/2009/01/remedial-scala-xml/</link>
	<description>You know, software and some other stuff like maybe guitar or something</description>
	<lastBuildDate>Tue, 15 Jun 2010 15:31:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dave</title>
		<link>http://blog.darevay.com/2009/01/remedial-scala-xml/comment-page-1/#comment-35</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Thu, 22 Jan 2009 13:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darevay.com/?p=175#comment-35</guid>
		<description>@German: Interesting. Funny that I&#039;m so wrapped up in learning the fancy syntax I hadn&#039;t even thought to check for a label or name property :)

In fact, it&#039;s even simpler. Since e is already in scope, I can just match on the label string directly. No need for the tuple in this case.</description>
		<content:encoded><![CDATA[<p>@German: Interesting. Funny that I&#8217;m so wrapped up in learning the fancy syntax I hadn&#8217;t even thought to check for a label or name property :)</p>
<p>In fact, it&#8217;s even simpler. Since e is already in scope, I can just match on the label string directly. No need for the tuple in this case.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: German</title>
		<link>http://blog.darevay.com/2009/01/remedial-scala-xml/comment-page-1/#comment-34</link>
		<dc:creator>German</dc:creator>
		<pubDate>Thu, 22 Jan 2009 12:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darevay.com/?p=175#comment-34</guid>
		<description>Re: the ugly match...
I think it would be better to match it like this:
(e.label, e) match { 
case (&quot;object&quot;, x) =&gt; /* use node x */
case (&quot;not&quot;, x) =&gt; /* use node x */
}
That is, matching by the element&#039;s label, but still providing the node itself. Pattern matching is done on a &quot;pair&quot; tuple.</description>
		<content:encoded><![CDATA[<p>Re: the ugly match&#8230;<br />
I think it would be better to match it like this:<br />
(e.label, e) match {<br />
case (&#8220;object&#8221;, x) =&gt; /* use node x */<br />
case (&#8220;not&#8221;, x) =&gt; /* use node x */<br />
}<br />
That is, matching by the element&#8217;s label, but still providing the node itself. Pattern matching is done on a &#8220;pair&#8221; tuple.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
