XML Processing
PHP 5 and XML
2024-11-24
5
DOM
SAX
Good for small documents
Event driven, good for large documents
Simpler to use (less code)
More memory efficient (if dom tree is not built)
Easier to generate XML
Faster for remote sources.