title: Drupal Feeds - Parse XML before importing
body: <p>I have this xml:</p>
  
  <pre><code>&lt;xml&gt;
    &lt;data&gt;
      &lt;name id=01"&gt;
        Pippo
      &lt;/name&gt;
      &lt;name id=02&gt;
        Pinco
      &lt;/name&gt;
      &lt;surname id=01"&gt;
        Franco
      &lt;/surname&gt;
      &lt;surname id=02&gt;
        Pallino
      &lt;/surname&gt;
    &lt;/data&gt;
  &lt;xml&gt;
  </code></pre>
  
  <p>I want to import in the node, just the stuff with attribute id=01.
  To do this I tried many roads but no one with success.
  So I am thinking about modifying the xml during a preparsing, to build an xml like:</p>
  
  <pre><code>&lt;xml&gt;
    &lt;data&gt;
      &lt;name id=01"&gt;
        Pippo
      &lt;/name&gt;
      &lt;surname id=01"&gt;
        Franco
      &lt;/surname&gt;
    &lt;/data&gt;
    &lt;data&gt;
      &lt;name id=02&gt;
        Pinco
      &lt;/name&gt;
      &lt;surname id=02&gt;
        Pallino
      &lt;/surname&gt;
    &lt;/data&gt;
  &lt;xml&gt;
  </code></pre>
  
  <p>and have the feeds module creating the two nodes with useful data.
  But I found no way and no useful hooks to do that with feeds module.</p>