<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bloggo ergo sum &#187; SharePoint</title>
	<atom:link href="http://bloggoergosum.com/tag/sharepoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://bloggoergosum.com</link>
	<description></description>
	<lastBuildDate>Thu, 15 Mar 2012 05:47:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>PowerShell+SharePoint Quickie: Export List Data</title>
		<link>http://bloggoergosum.com/2010/11/17/powershellsharepoint-quickie-export-list-data/</link>
		<comments>http://bloggoergosum.com/2010/11/17/powershellsharepoint-quickie-export-list-data/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 19:20:10 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">http://bloggoergosum.com/?p=535</guid>
		<description><![CDATA[I&#8217;m packaging up some work I did for a client in a set of SharePoint features, and some of the features include list instances. In this case, I needed to package up a list instance into feature xml so it could be deployed from the administrative web interface, but I didn&#8217;t have the list data <a href="http://bloggoergosum.com/2010/11/17/powershellsharepoint-quickie-export-list-data/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m packaging up some work I did for a client in a set of SharePoint features, and some of the features include list instances.  In this case, I needed to package up a list instance into feature xml so it could be deployed from the administrative web interface, but I didn&#8217;t have the list data in that format.  I didn&#8217;t want to enter the data by hand, and there wasn&#8217;t an easy, readily-available tool to help extract the data in the format I needed.  Enter PowerShell:</p>
<pre lang="powershell">
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$site = New-Object Microsoft.SharePoint.SPSite("http://mysharepointsite")
$site.RootWeb.Lists["MyList"].Items |% { "<Row>`n  <Field Name=`"ID`">{0}</Field>`n  <Field Name=`"Title`">{1}</Field>`n</Row>", $_["ID"],$_["Title"] }
</pre>
<p>This spits out XML formatted for use in a <code>&lt;ListInstance&gt;</code> element.</p>
]]></content:encoded>
			<wfw:commentRss>http://bloggoergosum.com/2010/11/17/powershellsharepoint-quickie-export-list-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

