PowerTip: Cast an RSS Feed into XML with PowerShell


Summary: Use Windows PowerShell to cast an RSS feed to an XML document.

Hey, Scripting Guy! Question How can you navigate an RSS feed as if it was an XML document by using Windows PowerShell?

Hey, Scripting Guy! Answer When retrieving an RSS feed, ensure that you cast it to an XML document by using the type accelerator:

            $hsg = Invoke-WebRequest http://blogs.technet.com/b/heyscriptingguy/atom.aspx

Comments (0)

Skip to main content