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    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 524 This week: 1All time: 5,689 This week: 560Up
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
Picture of Dom Hastings
Name: Dom Hastings <contact>
Classes: 4 packages by
Country: United Kingdom
Age: 40
All time rank: 127958 in United Kingdom
Week rank: 411 Up12 in 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  
 0%
Total:524
This week:1
All time:5,689
This week:560Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1457