I'm getting this error while trying to read a file, using Laravel 7.
XMLReader::open(): Unable to open source data
The file is like this, in local disk, size is about 10 MB.
`
Stone0.000.000.000.0002020/20210NoNoNoNoNo5f1fe1d3a56d3a88364d.jpg`
with this code
` StreamParser::xml(storage_path('products\products.xml'))->each(function (Collection $product) {
var_dump($product);
var_dump($product->get('Images'));
});`
Any idea why this is happening?
Such a mistake that was, your path should include "app" folder too, you should use this
Storage::path('products\products.xml')
instead of storage_path('products\products.xml').
I'm getting this error while trying to read a file, using Laravel 7.
XMLReader::open(): Unable to open source data
The file is like this, in local disk, size is about 10 MB. `