title: ElementTree - Issue in appending the subelement to an element
body: <p>I want to create subelement to an element that comes next to the element country singapore here.</p>
  
  <p>Suppose my test.xml file looks like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;data&gt;
      &lt;country name="Malaysia" tst="bh"&gt;
          &lt;year&gt;2008&lt;/year&gt;
          &lt;gdppc&gt;141100&lt;/gdppc&gt;
          &lt;neighbor name="Singapore" direction="E"/&gt;
          &lt;neighbor name="Switzerland" direction="W"/&gt;
      &lt;/country&gt;
      &lt;district&gt;
          &lt;A name="test"&gt;
          &lt;/A&gt;
      &lt;/district&gt;
      &lt;country name="Singapore" tst="ab"&gt;
          &lt;rank updated="yes"&gt;5&lt;/rank&gt;
          &lt;year&gt;2011&lt;/year&gt;
          &lt;gdppc&gt;59900&lt;/gdppc&gt;
          &lt;neighbor name="Malaysia" direction="N"/&gt;
      &lt;/country&gt;
     &lt;district&gt;
          &lt;B name="test"&gt;
          &lt;/B&gt;
      &lt;/district&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>In the above example,I want to create  subelement to element district but the element present above should be country "singapore".
  It should be </p>
  
  <pre><code>&lt;district&gt;
     &lt;t1 name="t1&gt;
     &lt;/t1&gt;
       &lt;B name="test"&gt;
      &lt;/B&gt;
  &lt;/district&gt;
  
  import xml.etree.ElementTree as et
  
  
  tree = et.parse("test.xml")
  root = tree.getroot()
  
  country = root.find(".//country[@name='Singapore']")
  
  et.subelement(country,"add new subelement")
  </code></pre>
  
  <p>I am able to add subelement to country element. But i couldn't take the district element below the country "singapore".</p>
  
  <p>Can anyone please help me here??</p>