Login   Register  
PHP Classes
elePHPant
Icontem

PHP Chunk: Extract chunks from large XML files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 468 All time: 5,463 This week: 1,533Up
Version License PHP version Categories  
phpchunk 0.1GNU General Public Lice...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 United Kingdom
Age: 31
All time rank: 122553 in United Kingdom United Kingdom
Week rank: 1899 Down82 in United Kingdom United Kingdom Down
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:468All time:5,463
 This week:0This week:1,533Up
 User Comments (1)