Search

Weird results with displaying xml objects by Krassimire.Gueorguiev

Active

1
0
Sign in
to vote
Type: Bug
ID: 773688
Opened: 12/6/2012 9:03:59 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Second time an xml object gets displayed produces different output. Looks like the object has been changed just by trying to display it. Get-Member returns different results, output is different, don't know what else is changed... If anything but a leaf from the xml object is displayed on the console - looks like the object gets changed and the second time result is different.

Tried with PowerShell 3 (Windows Server 2008 R2 Standard x64, Windows 7 x64, Windows 8 Pro x64) and PowerShell 2 (Win XP x64) - same results... Haven't tried with PowerShell 1.
Details (expand)
How often does this happen?
Always Happens

Have you seen this problem before in this product?

Yes, this happens in previous released versions
Reproduction Steps
---- test.ps1 ---
[xml] $xml="<Test></Test>"
$xml
$xml
---------
Expected Results
Both times $xml is displayed should produce the same output since object has not been modified.
File Attachments
0 attachments
Sign in to post a comment.
Sign in to post a workaround.