I meant to create a generic XML document to illustrate but had this Feeds
API example handy.
I've been playing with the Feeds API via "Microsoft.FeedsManager" and I find
that I am having trouble when I get the XML of a FeedItem.
>$feeds = (New-Object -com "Microsoft.FeedsManager").RootFolder.Feeds
>$feeds|%{$_.Items}|%{[XML]($_.xml(1))}
format-default : The member "Item" is already present.
The following gets me a bit more information.
>$feeds|%{$_.Items}|%{[XML]($_.xml(1))}|gm
The pipeline has been stopped.
At line:1 char:34
+ $Feeds|%{$_.Items}|%{[XML]($_.xml( <<<< 1))}|gm
The pipeline has been stopped.
At line:1 char:13
+ $Feeds|%{$_.I <<<< tems}|%{[XML]($_.xml(1))}|gm
Get-Member : The member "Item" is already present.
At line:1 char:41
+ $Feeds|%{$_.Items}|%{[XML]($_.xml(1))}|gm <<<<
It seems there is a ParameterizedProperty "Item" interfering with the
Property "Item".
Anyone have a hint at overcoming this?


