laravel import xml to database

Solutions on MaxInterview for laravel import xml to database by the best coders in the world

showing results for - "laravel import xml to database"
Otis
05 Jul 2020
1$xml = new SimpleXMLElement($destinationPath.$fileName, null, true);
2
3$xml = new DomDocument('1.0', 'utf-8'); // Or the right version and encoding of your xml file
4$xml->load($destinationPath.$fileName);