title: Parse all but a few nodes with certain attribute values
body: <p>Using elementtree, is there a easy way to parse the entire xml document except those text that are on nodes that have some particular attribute value. As an example I would like to parse the file except for when attribute <code>name="Liechtenstein"</code>and when attribute <code>month="08"</code></p>
  
  <pre><code>&lt;data&gt;
      &lt;country name="Liechtenstein"&gt;
          &lt;rank updated="yes"&gt;2&lt;/rank&gt;
          &lt;language&gt;english&lt;/language&gt;
          &lt;currency&gt;1.21$/kg&lt;/currency&gt; 
          &lt;gdppc month="06"&gt;141100&lt;/gdppc&gt;
          &lt;gdpnp month="10"&gt;2.304e+0150&lt;/gdpnp&gt;
          &lt;neighbor name="Austria" direction="E"/&gt;
          &lt;neighbor name="Switzerland" direction="W"/&gt;
      &lt;/country&gt;
      &lt;country name="Singapore"&gt;
          &lt;rank updated="yes"&gt;5&lt;/rank&gt;
          &lt;language&gt;english&lt;/language&gt;
          &lt;currency&gt;4.1$/kg&lt;/currency&gt; 
          &lt;gdppc month="05"&gt;59900&lt;/gdppc&gt;
          &lt;gdpnp month="08"&gt;5.2e-015&lt;/gdpnp&gt;
          &lt;neighbor name="Malaysia" direction="N"/&gt;
      &lt;/country&gt;
      &lt;country name="Lahore"&gt;
          &lt;rank updated="yes"&gt;8&lt;/rank&gt;
          &lt;language&gt;Pertr&lt;/language&gt;
          &lt;currency&gt;7.3$/kg&lt;/currency&gt; 
          &lt;gdppc month="010"&gt;34000&lt;/gdppc&gt;
          &lt;gdpnp month="099"&gt;3.4e+015&lt;/gdpnp&gt;
          &lt;neighbor name="Peru" direction="N"/&gt;
      &lt;/country&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>Based on the above, I would like to return the following <code>5</code>, <code>english</code>, <code>4.1$/kg</code>, <code>59900</code>, <code>8</code>, <code>Pertr</code>, <code>7.3$/kg</code>, <code>34000</code>, <code>3.4e+015</code>. I feel one can use <code>iterparse</code> but I do not know how to go about this. 
  Thanks for the suggestions</p>