leomarquine / php-etl

Extract, Transform and Load data using PHP.
MIT License
178 stars 81 forks source link

Xml multiple entries only get last value #58

Open bobnnnn opened 2 years ago

bobnnnn commented 2 years ago

When loading an xml document with the extract for a multiple value name node:

<item>
      <do>
            <code>A</code>
            <code>B</code>
            <code>C</code>
            <code>D</code>
      </do>
</item>
<item>
      <do>
            <code>A</code>
            <code>B</code>
            <code>C</code>
            <code>D</code>
      </do>
</item>

I iterate on and get all key value but for i get only one key "code" with the last value, do you think it possible to get an array value "do" => ["code" => [0 => "A", 1 => "B"...] to get all values ?