title: Python: Access the next element in XML using ElementTree
body: <p>My <code>XML</code> file has no tags, which makes parsing not so friendly. I'm trying to find an element and change it:</p>
  
  <pre><code>...        
      &lt;dict&gt;
          &lt;key&gt;Arguments&lt;/key&gt;
              &lt;dict&gt;
                  &lt;key&gt;TestArchive&lt;/key
                  &lt;string&gt;testArchive.tar&lt;/string&gt;
              &lt;/dict&gt;
              ....
      &lt;/dict&gt;
  ...
  </code></pre>
  
  <p>What I'm trying to do is to get and change "testArchive.tar" string, because this string may change every time, I use TestArchive as an anchor</p>
  
  <pre><code>from xml.etree import ElementTree
  with open ('file.xml', 'rt') as f:
      tree = ElementTree.parse(f)
  
  for item in tree.iter():
      if item.text == "TestArchive":
           ....
  </code></pre>
  
  <p>How can I get the next element? Which in my case supposed to be the item I'm looking for?</p>