title: Is the following possible in PowerShell: "Select-Object <Property>.<SubProperty>"?
body: <p>The scenario: I'm using Select-Object to access properties of a piped object, and one of those properties is itself an object.  Let's call it PropertyObject.  I want to access a property of that PropertyObject, say Property1.  Is there any nice and clean way of accessing Property1, along the lines of:</p>
  
  <pre><code>...| select-object PropertyObject.Property1
  </code></pre>
  
  <p>While experimenting I can only get it to work if I do something like:</p>
  
  <pre><code>...| select-object {$_.PropertyObject.Property1}
  </code></pre>
  
  <p>and if I want to display it with a decent column name it gets even messier:</p>
  
  <pre><code>...| select-object @{Name="Property1"; Expression={$_.PropertyObject.Property1}}
  </code></pre>
  
  <p>Given how clean and concise PowerShell is in general, I can't help thinking I'm missing something and there should be a cleaner way of accessing a property of a property.  Is there?</p>
  
  <p><strong>EDIT:</strong>  As requested by Matt, here is the concrete example:</p>
  
  <p>I'm reading an XML file, Books3.xml:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;catalog&gt;
     &lt;book id="bk101"&gt;
        &lt;author&gt;Gambardella, Matthew&lt;/author&gt;
        &lt;title&gt;XML Developer's Guide&lt;/title&gt;
        &lt;genre&gt;Computer&lt;/genre&gt;
        &lt;price&gt;44.95&lt;/price&gt;
        &lt;publish_date inprint="false"&gt;2000-10-01&lt;/publish_date&gt;
        &lt;description&gt;An in-depth look at creating applications 
        with XML.&lt;/description&gt;
        &lt;publisher&gt;
          &lt;name&gt;Simon and Schuster&lt;/name&gt;
          &lt;country&gt;USA&lt;/country&gt;
          &lt;city&gt;New York&lt;/city&gt;
        &lt;/publisher&gt;
     &lt;/book&gt;
     &lt;book id="bk102"&gt;
        &lt;author&gt;Ralls, Kim&lt;/author&gt;
        &lt;title&gt;Midnight Rain&lt;/title&gt;
        &lt;genre&gt;Fantasy&lt;/genre&gt;
        &lt;price&gt;5.95&lt;/price&gt;
        &lt;publish_date inprint="true"&gt;2000-12-16&lt;/publish_date&gt;
        &lt;description&gt;A former architect battles corporate zombies, 
        an evil sorceress, and her own childhood to become queen 
        of the world.&lt;/description&gt;
        &lt;publisher&gt;
          &lt;name&gt;HarperCollins&lt;/name&gt;
          &lt;country&gt;USA&lt;/country&gt;
          &lt;city&gt;New York&lt;/city&gt;
        &lt;/publisher&gt;
     &lt;/book&gt;
     &lt;book id="bk103"&gt;
        &lt;author&gt;Corets, Eva&lt;/author&gt;
        &lt;title&gt;Maeve Ascendant&lt;/title&gt;
        &lt;genre&gt;Fantasy&lt;/genre&gt;
        &lt;price&gt;5.95&lt;/price&gt;
        &lt;publish_date inprint="false"&gt;2000-11-17&lt;/publish_date&gt;
        &lt;description&gt;After the collapse of a nanotechnology 
        society in England, the young survivors lay the 
        foundation for a new society.&lt;/description&gt;
        &lt;publisher&gt;
          &lt;name&gt;Macmillan&lt;/name&gt;
          &lt;country&gt;United Kingdom&lt;/country&gt;
          &lt;city&gt;London&lt;/city&gt;
        &lt;/publisher&gt;
     &lt;/book&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>Code to load XML into XmlDocument:</p>
  
  <pre><code>$filePath = "C:\Temp\books3.xml"
  $xmlDoc = new-object xml
  $xmlDoc.load($filePath)
  </code></pre>
  
  <p>Attempting to read details for each book:</p>
  
  <pre><code>$xmlDoc.catalog.book | select author, title, publisher.name
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>author                     title                      publisher.name
  ------                     -----                      --------------
  Gambardella, Matthew       XML Developer's Guide
  Ralls, Kim                 Midnight Rain
  Corets, Eva                Maeve Ascendant
  </code></pre>