title: repetable xml blocks separation
body: <p>i need help with xml
  i used too have</p>
  <pre><code>&lt;data&gt;
      &lt;slib&gt;
          &lt;ime&gt;CGDEV&lt;/ime&gt;
          &lt;isolated&gt;true&lt;/isolated&gt;
          &lt;libclass&gt;&quot;/solr_lib&quot;&lt;/libclass&gt;
          **&lt;cluster&gt;cluster1&lt;/cluster&gt;
          &lt;server&gt;&lt;/server&gt;
          &lt;node&gt;&lt;/node&gt;**
      &lt;/slib&gt;
  
      &lt;slib&gt;
          &lt;ime&gt;MDB&lt;/ime&gt;
          &lt;isolated&gt;false&lt;/isolated&gt;
          &lt;libclass&gt;&quot;-1.2.51.jar&quot;&lt;/libclass&gt;
          **&lt;cluster&gt;&lt;/cluster&gt;
          &lt;server&gt;&lt;/server&gt;
          &lt;node&gt;node1&lt;/node&gt;**
      &lt;/slib&gt;
  &lt;/data&gt;
  </code></pre>
  <p>i used that properties for creating things on server...
  i put them in array and created one by one....</p>
  <pre><code>def create_shlib():
      for i in range(x):
          if Arrayserver[i] != None and Arraynode[i] != None:
              server1=Arrayserver[i]
              nodee=Arraynode[i]
              server_id = AdminConfig.getid('/Node:'+nodee+'/Server:'+server1+'/')
          elif Arraynode[i] != None:
              nodee=Arraynode[i]
              server_id=AdminConfig.getid('/Node:'+nodee+'/')
          else:
              cluster=Arraycluster[i]
              server_id = AdminConfig.getid('/Cell:'+slib_cell+'/ServerCluster:'+cluster+'/')
              
          AdminConfig.create('Library', 
                          server_id,
                          [
                           ['name', Arrayime[i]],
                           ['isolatedClassLoader', Arrayisolated[i]],
                           ['description','Vestigo-shared_library'],
                           ['classPath', Arrayclass[i]]
                          ]
      )
  </code></pre>
  <p>now i need to separate  cluster, server, node from properties
  it would look something like this</p>
  <pre><code>&lt;scope&gt;
      &lt;id&gt;1&lt;/id&gt;
      &lt;cluster&gt;cluster1&lt;/cluster&gt;
      &lt;server&gt;&lt;/server&gt;
      &lt;node&gt;&lt;/node&gt;
      
      &lt;slib&gt;
          &lt;ime&gt;CGDEV1&lt;/ime&gt;
          &lt;isolated&gt;true1&lt;/isolated&gt;
          &lt;libclass&gt;lr_lib1&quot;&lt;/libclass&gt;
      &lt;/slib&gt;
      
      &lt;slib&gt;
          &lt;ime&gt;CGDEV2&lt;/ime&gt;
          &lt;isolated&gt;true2&lt;/isolated&gt;
          &lt;libclass&gt;r_lib2&quot;&lt;/libclass&gt;
      &lt;/slib&gt;
  &lt;/scope&gt;
  
  &lt;scope&gt;
      &lt;id&gt;2&lt;/id&gt;
      &lt;cluster&gt;&lt;/cluster&gt;
      &lt;server&gt;trx01&lt;/server&gt;
      &lt;node&gt;node01&lt;/node&gt;
      &lt;slib&gt;
          &lt;ime&gt;CGDEV11&lt;/ime&gt;
          &lt;isolated&gt;true1&lt;/isolated&gt;
          &lt;libclass&gt;&quot;r_lib1&quot;&lt;/libclass&gt;
      &lt;/slib&gt;
      
      &lt;slib&gt;
          &lt;ime&gt;CGDEV22&lt;/ime&gt;
          &lt;isolated&gt;true2&lt;/isolated&gt;
          &lt;libclass&gt;olr_lib2&quot;&lt;/libclass&gt;
      &lt;/slib&gt;
  &lt;/scope&gt;
  
  &lt;/data&gt;
  </code></pre>
  <p>like you see every scope has its own properties.</p>
  <p>how can i manipulate with this xml blocks after separation.</p>
  <p>i need to take one scope, all his property, pass it to array and create.
  after i need second scope, his property and also pass it to array.
  what xml actions should i use.
  i used before</p>
  <pre><code>isolated = root.findall('slib/isolated')
  for c in isolated:
      Arrayisolated.append(c.text)
  </code></pre>
  <p>it was easy because they were in order one by one.</p>