我有一个带有此Xpath的XML文件
let {current: temp, min: minTemp, max: maxTemp} = this.getFahrenheit(currentWeather.main.temp, currentWeather.main.temp_min, currentWeather.main.temp_max);
我需要在wp all import中创建一个FOREACH循环,但是失败了。我尝试过这样的事情:
<IMAGES>
<MAIN_IMAGE>
<URL>
https://www.bestlook.sk/img/p/7/3/9/3/9/73939.jpg
</URL>
<ALT>Tričko GLO STORY 6141 - sivé</ALT>
</MAIN_IMAGE>
<NEXT_IMAGES>
<NEXT_IMAGE>
<URL>
https://www.bestlook.sk/img/p/7/3/8/1/5/73815.jpg
</URL>
<ALT>Tričko GLO STORY 6141 - sivé</ALT>
</NEXT_IMAGE>
<NEXT_IMAGE></NEXT_IMAGE>
<NEXT_IMAGE></NEXT_IMAGE>
<NEXT_IMAGE></NEXT_IMAGE>
</NEXT_IMAGES>
</IMAGES>
但是不起作用。谢谢您的帮助