-
Notifications
You must be signed in to change notification settings - Fork 8.4k
XML nodes are too picky about setting values #2459
Copy link
Copy link
Closed
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Metadata
Metadata
Assignees
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Type
Fields
Give feedbackNo fields configured for issues without a type.
When setting an XML node content, PowerShell doesn't correctly unwrap PSObject strings.
For instance:
Join-Pathobviously outputs strings, but it outputs them wrapped in PSObjectsSteps to reproduce
Expected behavior
$x.root.pathis an XML Node with string content "C:\Windows"Actual behavior
A
SetValueExceptionis thrown:Environment data
Workaround
Either of the following would work, but should not be necessary: