September 22nd, 2012

PowerTip: Cast an RSS Feed into XML with PowerShell

Doctor Scripto
Scripter

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 [xml] type accelerator:

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.