Created
March 24, 2012 07:34
-
-
Save kiyokura/2179597 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
#.NETのSyndicationFeedクラスを使ってやってみました。 | |
[System.Reflection.Assembly]::LoadWithPartialName("System.ServiceModel.dll") | |
$url = "http://winscript.jp/powershell/rss2/" | |
$xml = [System.Xml.XmlReader]::Create($url) | |
$feed = [System.ServiceModel.Syndication.SyndicationFeed]::Load($xml) | |
foreach($item in $feed.Items) | |
{ | |
$item.title.Text | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment