Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

PowerTip: Cast an RSS Feed into XML with PowerShell

$
0
0

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


Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>