Windows PowerShell Home
Weird results with displaying xml objects
12/6/2012 9:03:59 AM
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.
How often does this happen?
Have you seen this problem before in this product?
Yes, this happens in previous released versions
---- test.ps1 ---
Both times $xml is displayed should produce the same output since object has not been modified.
to post a comment.
Please enter a comment.
to post a workaround.
Please enter a workaround.
© 2013 Microsoft