So, I've read on w3schools about tree- and event- based parsers for XML (PHP). It says that tree-based parsers are better for small documents (because it takes whole XML into memory), while event-based are better for large documents (taking a node at a time).

This [Tree-based] type of parser is a better option for smaller XML documents, but not for large XML document as it causes major performance issues. -

My question is, when is an XML file considered large? At how many lines/kB/nodes?

Or better, at what XML size should I switch to event-based XML (since I'm using SimpleXML, tree-based, right now)?

Cheers :)