Link to home
Start Free TrialLog in
Avatar of mikeydk
mikeydkFlag for Denmark

asked on

SelectSingleNode in Powershell

Hey

$org = "123"
XML @orgunit = "MyDepartment(123)"

$xml.SelectSingleNode("//*[@orgunit='$org']")

How do I match the "123" with the "MyDepartment(123)" - the department number is always between the ().
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial