PowerShell Monitor escaping problem

Topics: User Forum
Apr 16, 2007 at 3:32 PM
Edited Apr 16, 2007 at 3:33 PM
I've added the PowerShell Monitor to PolyMon, but it has problems executing my script (which works fine inside PowerShell itself).
It seems this is a problem with unescaping the escaped xml data before executing it

The script: $Status.StatusText= "<"
This results in the test output:
Status: 0
Status Message: & lt ;
(without the spaces, but the CodePlex forum translates it otherwise)

While I have not tested it, I think the problem is in the function ReadXMLNodeValue, where InnerXml is used instead of InnerText
(see http://msdn2.microsoft.com/en-us/library/system.xml.xmlnode.innertext.aspx for details on this)
Apr 17, 2007 at 12:45 PM
This discussion has been copied to Work Item 9688. You may wish to continue further discussion there.