Which is the best way to parse an XML file in PHP ?
First Using the DOM object
//code $dom = new DOMDocument(); $dom->load(
I prefer simplexml_load_string for ease of use. Processing speed may well depend on the format of the XML file if the two use different methods of parsing the file - try it out on your own files and see which is better for you.