title: Solr How can i get the attribute values from XML using dataimportHandler
body: <p>I need to extract info from a HTTP web service which is serving XML as follows:</p>
  
  <pre><code>&lt;results&gt;
  &lt;parametros&gt;
      &lt;param name="mode"&gt;xml&lt;/param&gt;
  &lt;/parametros&gt;
  &lt;estacions&gt;
      &lt;estacio id="72400" nom="Aeroport"/&gt;
      &lt;estacio id="79600" nom="Arenys de Mar"/&gt;
      &lt;estacio id="79404" nom="Badalona"/&gt;
      ...
  &lt;/estacions&gt;
  &lt;/results&gt;
  </code></pre>
  
  <p>How can I get the ttribute values? For example id and nom attributes?
  Here's my dataconfig file, but I don't reach to see how to implement this situation.</p>
  
  <pre><code>&lt;dataConfig&gt;
      &lt;dataSource type="HttpDataSource" /&gt;
      &lt;document&gt;
              &lt;entity name="slashdot"
                      pk="link"
                      url=http://_host_/xmlservice/"
                      processor="XPathEntityProcessor"
                      forEach="/estacions"
                      transformer="DateFormatTransformer"&gt;
                      &lt;field column="idestacio"       xpath="/estacio.id"   commonField="true" /&gt;
                      &lt;field column="nomestacio"      xpath="/estacio.nom"    commonField="true" /&gt;                        
              &lt;/entity&gt;
      &lt;/document&gt;
  &lt;/dataConfig&gt; 
  </code></pre>