PHP, DOMdocument and xPath to spar an xml file
When we have to process a very large XML, it is unfortunately not possible to use SimpleXML. Fortunately for this, we can use DOMDocument. To do this, just load the desired file and initialize xpath on it with DOMXPath. $document – new DOMDocument(); $document-load ($file); $xpath – new DOMXPath ($document); If the XML in question … Read more