Created
March 24, 2012 07:48
-
-
Save kiyokura/2179809 to your computer and use it in GitHub Desktop.
ヒーロー島 PowerShell ハンズオン 問題3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$client = New-Object System.Net.WebClient | |
$client.Encoding =[System.Text.Encoding]::UTF8 | |
$string = $client.downloadstring("http://winscript.jp/powershell/rss2/") | |
$xml=[xml]$string | |
$items = $xml.rss.channel.item | |
foreach($item in $items) | |
{ | |
$item.title | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment