Closed bh-teufels closed 4 months ago
Hi. First of all, you need xmlpath
for XML structures and not arrayPath
. And note that the xpath
combines with the field
property if it exists (i.e. External Import will first get the node corresponding to the field
and then execute the xpath
relative to that node). And according to that, the above configuration does not point to an existing XML node.
But then I don't really understand your question. Do you want to import two pieces of information in the same field? Or in two separate fields?
Thank you i want to import the two informations in two seperate fields. so i need to indicate my path with xpath correct? does it work like arrayPath?
so for example to get the consumptions > fuel > combined i have to address it like that:
'mobilede_xml' => [
'field' => 'consumptions',
'xpath' => 'fuel/combined',
]
and for emissions > combined > co2
'mobilede_xml' => [
'field' => 'emissions',
'xpath' => 'combined/co2',
]
this seems to working - thank you
Great!
Can this issue be closed?
yes thank you
how does the arrayPath have to look if the data is under more than one additional node
my data
my configration
but it does not work it get the data from emissions/combined first entry (136)