title: How can you use PowerShell's . (dot) notation to walk through elements with periods in the element name?
body: <p>PowerShell makes working with XML fairly easy in most cases. However, I'm having trouble using the "dot" notation to walk through a web.config file. Everything works</p>
  
  <pre><code>Import-Module WebAdministration
  $site = get-website | ? { $_.name -eq "My Website - 80" }
  $WebConfigFile = $site.physicalPath + "\web.config"
  [xml]$WebAppXml = Get-Content $WebConfigFile
  $webAppXml.configuration.system.web
  </code></pre>
  
  <p>On the last line, PowerShell uses intellisense to fill in system.web, but if you try to run it, the output is null. I know I can use Xpath or the .NET Xml objects, but I'd rather not if I don't have to.</p>