title: JSOUP get element with multiple classes
body: <p>I am trying to read all <code>&lt;div&gt;</code>s with the class = <code>"listitem show-in-category"</code> from an HTML page. Furthermore, I want to get the <code>itemprop</code> fields like <code>itemprop="description"</code> and <code>itemprop="image"</code> under each . An example of the <code>&lt;div&gt;</code> is below:</p>
  
  <pre><code>&lt;div class="listitem show-in-category"&gt;
      &lt;img itemprop="image" alt="For the Trumpets Shall Sound" class="poster pull-left" src=
      "/images/shows/rectangle-poster/resized/188x282/4423-1390493634-forthetrumpets-rec.jpg"
      title="For the Trumpets Shall Sound"&gt;
  
      &lt;h2 itemprop="name"&gt;&lt;a href=
      "http://www.londonboxoffice.co.uk/for-the-trumpets-shall-sound-tickets"&gt;
      For the Trumpets Shall Sound&lt;/a&gt;&lt;/h2&gt;
  
      &lt;p itemprop="description"&gt;&lt;p&gt;Ruth is clearing out her Mother's attic, with the help of her son
      Jamie, when they make an interesting discovery.&lt;br&gt;
      &lt;br&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>On the <a href="http://jsoup.org/cookbook/extracting-data/selector-syntax" rel="nofollow">JSOUP selector page</a>, it is stated that I can access all divs by class name as:</p>
  
  <pre><code>Elements mydesiredclass = doc.select("div.class")
  </code></pre>
  
  <p><strong>1)</strong> However, for the class name above this does not work, probably since the class name has spaces? What syntax should I use to get all divs with the given class name? </p>
  
  <p><strong>2)</strong> Also, once I manage to get all divs and am looping through them, how can I get their <code>description</code> and <code>img</code> properties?</p>