<?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: When is Groovy (or something like it) better than XML?</title>
	<atom:link href="http://almaer.com/blog/when-is-groovy-or-something-like-it-better-than-xml/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog/when-is-groovy-or-something-like-it-better-than-xml</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Sat, 08 Sep 2012 07:06:53 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James Strachan</title>
		<link>http://almaer.com/blog/when-is-groovy-or-something-like-it-better-than-xml/comment-page-1#comment-2495</link>
		<dc:creator>James Strachan</dc:creator>
		<pubDate>Mon, 17 May 2004 12:20:45 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/when-is-groovy-or-something-like-it-better-than-xml#comment-2495</guid>
		<description>FWIW it totally depends on what kind of XML config file it is. If there&#039;s a well defined schema, then XML can be a good choice.

Where XML is a lousy choice is when the XML is generic. e.g. building arbitrary beans and stuff like this


&lt;bean class=&quot;com.acme.Foo&quot;&gt;
&lt;property&gt;
&lt;property-name&gt;bar&lt;/property-name&gt;
&lt;property-value&gt;123&lt;/property-value&gt;
&lt;/property&gt;
&lt;property&gt;
&lt;property-name&gt;x&lt;/property-name&gt;
&lt;property-value&gt;456&lt;/property-value&gt;
&lt;/property&gt;
&lt;/bean&gt;


Its often way easier to just do somethign like this in groovy...

new com.acme.Foo(bar:123, x:456)

But like anything, YMMV and choose the best tool for the job
</description>
		<content:encoded><![CDATA[<p>FWIW it totally depends on what kind of XML config file it is. If there&#8217;s a well defined schema, then XML can be a good choice.</p>
<p>Where XML is a lousy choice is when the XML is generic. e.g. building arbitrary beans and stuff like this</p>
<p>&lt;bean class=&#8221;com.acme.Foo&#8221;&gt;<br />
&lt;property&gt;<br />
&lt;property-name&gt;bar&lt;/property-name&gt;<br />
&lt;property-value&gt;123&lt;/property-value&gt;<br />
&lt;/property&gt;<br />
&lt;property&gt;<br />
&lt;property-name&gt;x&lt;/property-name&gt;<br />
&lt;property-value&gt;456&lt;/property-value&gt;<br />
&lt;/property&gt;<br />
&lt;/bean&gt;</p>
<p>Its often way easier to just do somethign like this in groovy&#8230;</p>
<p>new com.acme.Foo(bar:123, x:456)</p>
<p>But like anything, YMMV and choose the best tool for the job</p>
]]></content:encoded>
	</item>
</channel>
</rss>
