PHP Classes

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 55%Total: 2,040 All time: 1,925 This week: 147Up
Version License PHP version Categories
simplelargexmlparser 1.6GNU Lesser Genera...5.0XML, PHP 5


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: 40
All time rank: 281 in Romania Romania
Week rank: 120 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 _______________________ CONTENTS _______________________ 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,925
This week:147Up
 User Ratings  
 All time