<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Format-XML</title><link>http://blogs.msdn.com/powershell/archive/2008/01/18/format-xml.aspx</link><description>Have you ever had an XML file that looks like crap? The problem is that XML is sorta the data encoding equivalent of Shimmer - sometimes its an encoding for programs and sometimes its an encoding for users. Our PowerShell MVP Brandon Shell pointed out</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>BS on PoSH - Blog  &amp;raquo; Format-XML (Journey to Pretty XML output)</title><link>http://blogs.msdn.com/powershell/archive/2008/01/18/format-xml.aspx#7151211</link><pubDate>Fri, 18 Jan 2008 20:45:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7151211</guid><dc:creator>BS on PoSH - Blog  » Format-XML (Journey to Pretty XML output)</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://bsonposh.com/modules/wordpress/?p=67"&gt;http://bsonposh.com/modules/wordpress/?p=67&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Format-XML</title><link>http://blogs.msdn.com/powershell/archive/2008/01/18/format-xml.aspx#7153519</link><pubDate>Sat, 19 Jan 2008 01:02:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7153519</guid><dc:creator>jaybaz_MS</dc:creator><description>&lt;p&gt;May I sugget making it a filter?&lt;/p&gt;</description></item><item><title>re: Format-XML</title><link>http://blogs.msdn.com/powershell/archive/2008/01/18/format-xml.aspx#7177410</link><pubDate>Mon, 21 Jan 2008 02:50:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7177410</guid><dc:creator>Joel "Jaykul" Bennett</dc:creator><description>&lt;p&gt;There's also a cmdlet for Format-XML in the PowerShell Community eXtensions snapin ... has a few additional options, too.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/PowerShellCX/SourceControl/FileView.aspx?itemId=101868&amp;amp;changeSetId=29385"&gt;http://www.codeplex.com/PowerShellCX/SourceControl/FileView.aspx?itemId=101868&amp;amp;changeSetId=29385&lt;/a&gt;&lt;/p&gt;</description></item><item><title>re: Format-XML</title><link>http://blogs.msdn.com/powershell/archive/2008/01/18/format-xml.aspx#9820335</link><pubDate>Mon, 06 Jul 2009 21:28:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9820335</guid><dc:creator>someone</dc:creator><description>&lt;p&gt;you can also display xml in a readable format such as this...&lt;/p&gt;
&lt;p&gt;$recoveruser = import-clixml \$name.xml&lt;/p&gt;
&lt;p&gt;$recoveruser | Sort-Object&lt;/p&gt;</description></item><item><title>re: Format-XML</title><link>http://blogs.msdn.com/powershell/archive/2008/01/18/format-xml.aspx#9893398</link><pubDate>Thu, 10 Sep 2009 02:59:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9893398</guid><dc:creator>Dmitry Kalashnikov</dc:creator><description>&lt;p&gt;Hello Jeffrey, &lt;/p&gt;
&lt;p&gt;It doesn't seem like your example #1 actually uses the passed-in $xml param?&lt;/p&gt;
&lt;p&gt;Also, in Lee's example how can I capture it to a string instead of writing it directly to a console?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Dmitry Kalashnikov&lt;/p&gt;</description></item></channel></rss>