Which is the best way to parse an XML file in PHP ?
First Using the DOM object
//code $dom = new DOMDocument(); $dom->load(
If you're processing huge files don't parse them. Apply XSLT instead. That'll save you huge amounts of memory and processing time.