Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php xml parser

$xmlContent = file_get_contents(__DIR__ . '/myFile.xml');
$contentToObject = new SimpleXMLElement($xmlContent);
$jsonData = json_encode($contentToObject, JSON_UNESCAPED_SLASHES);
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #xml #parser
ADD COMMENT
Topic
Name
9+3 =