PHP Simple Large XML Parser: Parse XML documents and return arrays of elements

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 2,019 All time: 1,936 This week: 227Up
Version License PHP version Categories
simplelargexmlparser 1.6GNU Lesser Genera...5.0XML, PHP 5
Description Author

This class can be used to parse XML documents and return arrays of elements.

It can load a XML document from a file and extract the structure of tags into eventually nested arrays.

The class can perform a query of the document using XPath syntax to retrieve only specific XML nodes that match the query.

Picture of Protung Dragos
Name: Protung Dragos is available for providing paid consulting. Contact Protung Dragos .
Classes: 10 packages by
Country: Romania Romania
Age: 38
All time rank: 281 in Romania Romania
Week rank: 111 Down1 in Romania Romania Equal
Innovation award
Innovation award
Nominee: 3x


               PHP Simple Large XML parser - Version 1.6
                           October 2009

                   Copyright (c) 2009 Dragos Protung



1. Description
2. System Requirements
3. How to use
4. Contact


1. Product Description

This class can be used to parse large XML files (it works with small one also) fast and with minimum of memory consumption.
It can parse any valid XML and convert it to an array.
You can parse any part of the XML as it supports XPath with the same performance as parsing the entire XML (well, a little bit faster as itís less data to parse)

2. System Requirements

PHP 5.0+


3. How to use

Please refer to the example script. 


3. Contact

Please send your suggestions, bug reports and general feedback to
Also visit

Out for now ;)
  Files folder image Files  
File Role Description
Plain text file SimpleLargeXMLParser.class.php Class The class
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file example.xml Data Example XML
Accessible without login Plain text file license.txt Lic. License
Accessible without login Plain text file readme.txt Doc. Readme

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,936
This week:227Up
 User Ratings  
 All time
For more information send a message to info at phpclasses dot org.