Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel import xml to database

$xml = new SimpleXMLElement($destinationPath.$fileName, null, true);

$xml = new DomDocument('1.0', 'utf-8'); // Or the right version and encoding of your xml file
$xml->load($destinationPath.$fileName);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #import #xml #database
ADD COMMENT
Topic
Name
1+7 =