My goal is to have a variable hold the dotted notation path to an element. I hope this is just a syntax issue. In the snippet below, the first line gives me the result I want.
I'm trying to figure out how to get the third line to work.
$colElements = $xmlFileL.configuration."system.serviceModel".client.endpoint
$Var1 = 'configuration."system.serviceModel".client.endpoint'
$colElements = $xmlFileL.$Var1