title: BeautifulSoup: using strings to get a value
body: <p>Is it possible to use a string to get a value of a tag?</p>
  
  <p>XML structure:</p>
  
  <pre><code>book
     title
        titletext
  book
     title
        titletext
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>books = BeautifulStoneSoup().findAll('book')
  for book in books:
      book.title.titletext.string
      #book.get_by_string('title.titletext').string is this possible?
  </code></pre>
  
  <p>If it's not possible does getattr support multiple levels? </p>
  
  <pre><code>getattr(book, 'title.titletext').string
  </code></pre>
  
  <p>I did some testing and this doesn't seem to be possible but maybe there is an alternative?</p>
  
  <p>If there isn't I guess I have to write my own recursive function to find the attribute?</p>