Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

RSS homepage

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 05-14-2008   #1 (permalink)
Braden C. Roberson-Mailloux
Guest


 

RSS homepage

Greetings;

$a = ([xml](new-object
net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.aspx")).rss.channel.item
| format-table title,link,pubdate | convertto-html

I use the following to create an html page to view my rss feeds. How do I
make the link object into an html anchor that goes to the blog?
select-object link | convertto-html link?



My System SpecsSystem Spec
Old 05-14-2008   #2 (permalink)
Shay Levi
Guest


 

Re: RSS homepage



Hi Braden,

You can generate the anchor with a new calculated property. The problem is
convertto-html renders the 'less-than' and 'greater-than'
signs HTML Entity (< and &gt , so replace them and send the output to
a file.


$a = ([xml](new-object net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.aspx")).rss.channel.item
$link = @{n="link";e={"<a href='$($_.link)'>$($_.title)</a>"}}
$a | select $link,title,pubdate | convertto-html | % {$_.replace("&lt;","<").replace("&gt;",">")}
| set-content .\temp\rss.html




---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> Greetings;
>
> $a = ([xml](new-object
> net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.as
> px")).rss.channel.item | format-table title,link,pubdate |
> convertto-html
>
> I use the following to create an html page to view my rss feeds. How
> do I make the link object into an html anchor that goes to the blog?
> select-object link | convertto-html link?
>

My System SpecsSystem Spec
Old 05-15-2008   #3 (permalink)
Bob Landau
Guest


 

Re: RSS homepage

sweet

while I've seen many cool scripts posted by a number of you most of them I
have to look at with envy. I don't have MOM, SMS, SQL or any of the dozen or
so services running at home

but this I can use from the comfort of my notebook; I'm saving this in my
repository

second thought its probably good I don't them

bob

"Shay Levi" wrote:
Quote:

>
>
> Hi Braden,
>
> You can generate the anchor with a new calculated property. The problem is
> convertto-html renders the 'less-than' and 'greater-than'
> signs HTML Entity (< and >) , so replace them and send the output to
> a file.
>
>
> $a = ([xml](new-object net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.aspx")).rss.channel.item
> $link = @{n="link";e={"<a href='$($_.link)'>$($_.title)</a>"}}
> $a | select $link,title,pubdate | convertto-html | % {$_.replace("<","<").replace(">",">")}
> | set-content .\temp\rss.html
>
>
>
>
> ---
> Shay Levi
> $cript Fanatic
> http://scriptolog.blogspot.com
>
Quote:

> > Greetings;
> >
> > $a = ([xml](new-object
> > net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.as
> > px")).rss.channel.item | format-table title,link,pubdate |
> > convertto-html
> >
> > I use the following to create an html page to view my rss feeds. How
> > do I make the link object into an html anchor that goes to the blog?
> > select-object link | convertto-html link?
> >
>
>
>
My System SpecsSystem Spec
Old 05-15-2008   #4 (permalink)
Shay Levi
Guest


 

Re: RSS homepage



Thanks bob!

btw, the title coulmn is redundant as its available on the $link.


---
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com
Quote:

> sweet
>
> while I've seen many cool scripts posted by a number of you most of
> them I have to look at with envy. I don't have MOM, SMS, SQL or any of
> the dozen or so services running at home
>
> but this I can use from the comfort of my notebook; I'm saving this in
> my repository
>
> second thought its probably good I don't them
>
> bob
>
> "Shay Levi" wrote:
>
Quote:

>> Hi Braden,
>>
>> You can generate the anchor with a new calculated property. The
>> problem is
>> convertto-html renders the 'less-than' and 'greater-than'
>> signs HTML Entity (< and >) , so replace them and send the output to
>> a file.
>> $a = ([xml](new-object
>> net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.a
>> spx")).rss.channel.item
>>
>> $link = @{n="link";e={"<a href='$($_.link)'>$($_.title)</a>"}}
>>
>> $a | select $link,title,pubdate | convertto-html | %
>> {$_.replace("<","<").replace(">",">")}
>>
>> | set-content .\temp\rss.html
>>
>> ---
>> Shay Levi
>> $cript Fanatic
>> http://scriptolog.blogspot.com
Quote:

>>> Greetings;
>>>
>>> $a = ([xml](new-object
>>> net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.
>>> as px")).rss.channel.item | format-table title,link,pubdate |
>>> convertto-html
>>>
>>> I use the following to create an html page to view my rss feeds. How
>>> do I make the link object into an html anchor that goes to the blog?
>>> select-object link | convertto-html link?
>>>

My System SpecsSystem Spec
Old 05-15-2008   #5 (permalink)
Braden C. Roberson-Mailloux
Guest


 

Re: RSS homepage

Thanks for the script, Shay!

"Braden C. Roberson-Mailloux" <bray@xxxxxx> wrote in message
news:O7utEQYtIHA.3968@xxxxxx
Quote:

> Greetings;
>
> $a = ([xml](new-object
> net.webclient).downloadstring("http://blogs.msdn.com/powershell/rss.aspx")).rss.channel.item
> | format-table title,link,pubdate | convertto-html
>
> I use the following to create an html page to view my rss feeds. How do I
> make the link object into an html anchor that goes to the blog?
> select-object link | convertto-html link?
>

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: IE7 tabs not showing homepage Robert Aldwinckle Vista security 6 01-16-2008 12:18 PM
HomePage Tabs >Why is it limited to 8 tabs ??? Vista General 3 11-06-2007 07:45 PM
Internet Explorer doesnt remember my homepage in Vista Morne Vista General 0 08-29-2007 01:30 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51