title: Powershell Xml query
body: <p>Here is exam XML..</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;books&gt;
      &lt;book&gt;
          &lt;title&gt;a book&lt;/title&gt;
          &lt;writer&gt;Tom&lt;/writer&gt;
      &lt;/book&gt; 
      &lt;book&gt;
          &lt;title&gt;b book&lt;/title&gt;
          &lt;writer&gt;John&lt;/writer&gt;
      &lt;/book&gt; 
      &lt;book&gt;
          &lt;title&gt;c book&lt;/title&gt;
          &lt;writer&gt;Tom&lt;/writer&gt;
      &lt;/book&gt; 
  &lt;/books&gt;
  </code></pre>
  
  <p>I want to find a list of this writer is Tom.
  So my script is </p>
  
  <pre><code>[xml]$books = Get-Content C:\Users\Administrator\Documents\books.xml
  $books.book| %{$_.book.writer -match 'Tom'}
  </code></pre>
  
  <p>But this script show only writer...</p>
  
  <pre><code>writer
  Tom
  Tom
  </code></pre>
  
  <p>I want to see like this</p>
  
  <pre><code>title      writer
  a book     Tom
  c book     Tom
  </code></pre>
  
  <p>help me plz.</p>