DEV Community

loading...

Discussion on: PHP XML Reader Example

Collapse
vlasales profile image
Vlastimil Pospichal • Edited

When using large XML with a DOMDocument...

$doc = new \DOMDocument('1.0', 'UTF-8');
$doc->load($filePath, LIBXML_PARSEHUGE);