<?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: NHibernate and xmlpoke</title>
	<atom:link href="http://lostechies.com/jimmybogard/2008/02/21/nhibernate-and-xmlpoke/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/jimmybogard/2008/02/21/nhibernate-and-xmlpoke/</link>
	<description>Strong opinions, weakly held</description>
	<lastBuildDate>Wed, 22 May 2013 13:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: John Dhom</title>
		<link>http://lostechies.com/jimmybogard/2008/02/21/nhibernate-and-xmlpoke/#comment-4183</link>
		<dc:creator>John Dhom</dc:creator>
		<pubDate>Tue, 06 Dec 2011 01:56:00 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/02/20/nhibernate-and-xmlpoke.aspx#comment-4183</guid>
		<description>Still good info, don&#039;t lose this post! I was able to sort out how to use msbuild XmlPoke, for NHibernate, based on your info. Thanks. I&#039;ve pasted a snippet below even though the formatting will likely be bad... as your post is still top of the list for &quot;msbuild xmlpoke nhibernate&quot;. Ha.

note: %3B escaping of &#039;;&#039; in msbuild

Best,
/jhd

==== property file====	


		...
		some-db-server
		some-database-name
		Server=$(DatabaseServer)%3BInitial Catalog=$(DatabaseName)%3BTrusted_Connection=True
		$(SourceDir)Configuration
	

==== build file====	


		
			&lt;Namespace Prefix=&#039;hbm&#039; Uri=&#039;urn:nhibernate-configuration-2.2&#039; /&gt;
		
		
			
		

		
	</description>
		<content:encoded><![CDATA[<p>Still good info, don&#8217;t lose this post! I was able to sort out how to use msbuild XmlPoke, for NHibernate, based on your info. Thanks. I&#8217;ve pasted a snippet below even though the formatting will likely be bad&#8230; as your post is still top of the list for &#8220;msbuild xmlpoke nhibernate&#8221;. Ha.</p>
<p>note: %3B escaping of &#8216;;&#8217; in msbuild</p>
<p>Best,<br />
/jhd</p>
<p>==== property file====	</p>
<p>		&#8230;<br />
		some-db-server<br />
		some-database-name<br />
		Server=$(DatabaseServer)%3BInitial Catalog=$(DatabaseName)%3BTrusted_Connection=True<br />
		$(SourceDir)Configuration</p>
<p>==== build file====	</p>
<p>			&lt;Namespace Prefix=&#8217;hbm&#8217; Uri=&#8217;urn:nhibernate-configuration-2.2&#8242; /&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: goku_da_master</title>
		<link>http://lostechies.com/jimmybogard/2008/02/21/nhibernate-and-xmlpoke/#comment-208</link>
		<dc:creator>goku_da_master</dc:creator>
		<pubDate>Wed, 18 Nov 2009 18:19:39 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/02/20/nhibernate-and-xmlpoke.aspx#comment-208</guid>
		<description>Perfect.  Just what I was looking for.  This example should be in the nant documentation since nhibernate is widely used now a days.</description>
		<content:encoded><![CDATA[<p>Perfect.  Just what I was looking for.  This example should be in the nant documentation since nhibernate is widely used now a days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Hinze</title>
		<link>http://lostechies.com/jimmybogard/2008/02/21/nhibernate-and-xmlpoke/#comment-207</link>
		<dc:creator>Matt Hinze</dc:creator>
		<pubDate>Thu, 28 Aug 2008 14:54:03 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/02/20/nhibernate-and-xmlpoke.aspx#comment-207</guid>
		<description>Great call.  This saved us today.</description>
		<content:encoded><![CDATA[<p>Great call.  This saved us today.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy Bogard</title>
		<link>http://lostechies.com/jimmybogard/2008/02/21/nhibernate-and-xmlpoke/#comment-206</link>
		<dc:creator>Jimmy Bogard</dc:creator>
		<pubDate>Thu, 21 Feb 2008 18:49:23 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/02/20/nhibernate-and-xmlpoke.aspx#comment-206</guid>
		<description>@Ben

Yeah I go back and forth between templating and poking.  Neither of them seem particularly easy to maintain in the long run, but that seems to stem from the fact that NAnt is a programming language in XML.</description>
		<content:encoded><![CDATA[<p>@Ben</p>
<p>Yeah I go back and forth between templating and poking.  Neither of them seem particularly easy to maintain in the long run, but that seems to stem from the fact that NAnt is a programming language in XML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Scheirman</title>
		<link>http://lostechies.com/jimmybogard/2008/02/21/nhibernate-and-xmlpoke/#comment-205</link>
		<dc:creator>Ben Scheirman</dc:creator>
		<pubDate>Thu, 21 Feb 2008 14:50:12 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/02/20/nhibernate-and-xmlpoke.aspx#comment-205</guid>
		<description>The way I tackle this is to take any file that has variable content in it, like:

* web.config&#039;s
* app.config&#039;s
* db pro project settings
* nhibernate xml files
* IOC config files

and create a template file that is stored in source control under the /config folder.  Then I put the environment settings into the local-properties.xml file that gets loaded into NAnt to provide machine specific settings.

These template files have tokens in them like @DB_SERVER@ or @OUTPUT_SQL@, and then I just use the nant &lt;copy&gt; task to copy the files to their actual location, specifying a filterchain to replace the tokens with properties from the build config.

This works very well, so far... and I don&#039;t have to worry about xml poking :)</description>
		<content:encoded><![CDATA[<p>The way I tackle this is to take any file that has variable content in it, like:</p>
<p>* web.config&#8217;s<br />
* app.config&#8217;s<br />
* db pro project settings<br />
* nhibernate xml files<br />
* IOC config files</p>
<p>and create a template file that is stored in source control under the /config folder.  Then I put the environment settings into the local-properties.xml file that gets loaded into NAnt to provide machine specific settings.</p>
<p>These template files have tokens in them like @DB_SERVER@ or @OUTPUT_SQL@, and then I just use the nant <copy> task to copy the files to their actual location, specifying a filterchain to replace the tokens with properties from the build config.</p>
<p>This works very well, so far&#8230; and I don&#8217;t have to worry about xml poking <img src='http://lostechies.com/jimmybogard/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </copy></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Bennage</title>
		<link>http://lostechies.com/jimmybogard/2008/02/21/nhibernate-and-xmlpoke/#comment-204</link>
		<dc:creator>Christopher Bennage</dc:creator>
		<pubDate>Thu, 21 Feb 2008 13:41:48 +0000</pubDate>
		<guid isPermaLink="false">/blogs/jimmy_bogard/archive/2008/02/20/nhibernate-and-xmlpoke.aspx#comment-204</guid>
		<description>I ran into this same issue a couple of weeks back (proof that I should be blogging more.) It was painful. Ugh.</description>
		<content:encoded><![CDATA[<p>I ran into this same issue a couple of weeks back (proof that I should be blogging more.) It was painful. Ugh.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
