title: Delete parent node if two child nodes are empty
body: <p>I have the following XML-File. `</p>
  
  <pre><code>    &lt;objects&gt;
         &lt;infos&gt;
            &lt;rep-id-name id="12345"/&gt;
            &lt;rep-name&gt;IT&lt;/rep-name&gt;
            &lt;create-user&gt;354832&lt;/create-user&gt;
            &lt;update-user&gt;354832&lt;/update-user&gt;
            &lt;create-date&gt;2013-04-22T12:37:56.798Z&lt;/create-date&gt;
            &lt;update-date&gt;2013-04-22T14:41:16.299Z&lt;/update-date&gt;
            &lt;parameter-definition/&gt;
            &lt;column-definition/&gt;
         &lt;/infos&gt;
         &lt;infos&gt;
            &lt;rep-id-name id="255962905"/&gt;
            &lt;rep-name&gt;IT&lt;/rep-name&gt;
            &lt;create-user&gt;35483&lt;/create-user&gt;
            &lt;update-user&gt;35483&lt;/update-user&gt;
            &lt;create-date&gt;2013-04-22T12:37:56.798Z&lt;/create-date&gt;
            &lt;update-date&gt;2013-04-22T12:43:44.238Z&lt;/update-date&gt;
            &lt;parameter-definition&gt;
               &lt;contains-loc-string&gt;True&lt;/contains-loc-string&gt;
            &lt;/parameter-definition&gt;
            &lt;column-definition/&gt;
         &lt;/infos&gt;
  &lt;/objects&gt;
  </code></pre>
  
  <p>How can i check if the two child nodes (<strong>parameter-definition</strong> and <strong>column-definition</strong>) are empty and delete the full parent node. So the expected result is:</p>
  
  <pre><code>&lt;objects&gt;
      &lt;infos&gt;
            &lt;rep-id-name id="255962905"/&gt;
            &lt;rep-name&gt;IT&lt;/rep-name&gt;
            &lt;create-user&gt;35483&lt;/create-user&gt;
            &lt;update-user&gt;35483&lt;/update-user&gt;
            &lt;create-date&gt;2013-04-22T12:37:56.798Z&lt;/create-date&gt;
            &lt;update-date&gt;2013-04-22T12:43:44.238Z&lt;/update-date&gt;
            &lt;parameter-definition&gt;
               &lt;contains-loc-string&gt;True&lt;/contains-loc-string&gt;
            &lt;/parameter-definition&gt;
            &lt;column-definition/&gt;
         &lt;/infos&gt;
  &lt;/objects&gt;
  </code></pre>