PHP Classes

PHP Chunk: Extract chunks from large XML files

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2009-07-10 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 513 All time: 5,639 This week: 521Up
Version License PHP version Categories
phpchunk 0.1GNU General Publi...5.0XML, PHP 5, Files and Folders
Description Author

This class can be used to extract chunks from large XML files.

It can read given XML files and search for sections that are enclosed by a given XML tag.

The class returns each XML document chunk with the given tag iteratively until it reaches the end of the file.

Innovation Award
PHP Programming Innovation award nominee
August 2009
Number 10
XML is a format often used for exchanging information. However, XML is not appropriate to exchange large amounts of data in a single file, as it takes a lot of CPU and memory to parse and process the information in the whole document at once.

This class provides a different approach to extract chunks of information for large XML files by reading the files in small chunks and extract the chunks into individual strings before parsing.

Manuel Lemos
Name: Dom Hastings <contact>
Classes: 4 packages by
Country: United Kingdom United Kingdom
Age: 36
All time rank: 126656 in United Kingdom United Kingdom
Week rank: 876 Up33 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 1x


  Files folder image Files  
File Role Description
Accessible without login Plain text file chunk-test.xml Data Simple data
Plain text file class.chunk.php Class Main class file
Accessible without login Plain text file complex-test.xml Data Example complex data
Accessible without login Plain text file index.php Example Example implementation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,639
This week:521Up
User Comments (1)