title: JSoup - how does HTML structure affect response?
body: <p><a href="https://i.stack.imgur.com/1gfky.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1gfky.jpg" alt="enter image description here"></a>Trying to learn JSoup but having problems with response that may be due to structure issues (or stupidity, you tell me!).  I do a simple query for "a[href]" but it only finds a subset 13 (text search tells me there are 162!).  Why does it not find all?  </p>
  
  <pre><code>            Document doc = Jsoup.connect(J_URL).get();
              String srchCSS = "a[href]";
              Elements select = doc.select(srchCSS);
              Iterator&lt;Element&gt; iterator = select.iterator();
              Log.w(TAG, "'" + srchCSS + "' # " + select.size());
              while (iterator.hasNext()) {
                  Element x = iterator.next();
                  System.out.println("'" + srchCSS + "':  " + x.text());
              }
              Log.e(TAG, "%%% COMPLETE %%%");
  </code></pre>
  
  <p>I want to get the text from 'p' (see RED arrow).  The a[href] above it is <em>NOT</em> being found?!?</p>