Manual:Parsing XML files

Parsing XML files is sometimes necessary for making use of data pulled from wikis. When using PHP, you will generally want to use the XMLReader class for large files (> 50 MB).

Example
In this example,  is used to process , a truncated version of   (see http://dumps.wikimedia.org/simplewiki/latest/simplewiki-latest-pages-logging.xml.gz). The log entries are var_dumped.