title: Get Child node in XML python
body: <p>I'm a newbie on python and XML and currently I'm using python 3.6 and I have this XML data in a variable</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;data&gt;
      &lt;country name="Liechtenstein"&gt;
          &lt;rank&gt;1&lt;/rank&gt;
          &lt;year&gt;2008&lt;/year&gt;
          &lt;gdppc&gt;141100&lt;/gdppc&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&gt;4&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;country name="Panama"&gt;
          &lt;rank&gt;68&lt;/rank&gt;
          &lt;year&gt;2011&lt;/year&gt;
          &lt;gdppc&gt;13600&lt;/gdppc&gt;
          &lt;neighbor name="Costa Rica" direction="W"/&gt;
          &lt;neighbor name="Colombia" direction="E"/&gt;
      &lt;/country&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>What I want to do is get the "child node"? and place it to a variable like this one</p>
  
  <pre><code>var1 = '&lt;country name="Liechtenstein"&gt;
      &lt;rank&gt;1&lt;/rank&gt;
      &lt;year&gt;2008&lt;/year&gt;
      &lt;gdppc&gt;141100&lt;/gdppc&gt;
      &lt;neighbor name="Austria" direction="E"/&gt;
      &lt;neighbor name="Switzerland" direction="W"/&gt;
  &lt;/country&gt;'
  
  var2 = '&lt;country name="Singapore"&gt;
      &lt;rank&gt;4&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;'
  
  ...etc
  </code></pre>
  
  <p>is there any way to get the result</p>