Parsing of the XML in PHP can be done via two methodologies, SAX (Simple API for XML) & DOM (Document Object Model).

DOM SAX
Good for small documents Event driven, good for large documents
Simpler to use (less code) More memory effecient (if dom tree is not built)
Easier to generate XML Faster for remote sources.