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
Not enough user ratingsTotal: 518 All time: 5,685 This week: 202Up
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: 38
All time rank: 127558 in United Kingdom
Week rank: 577 Up15 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  
This week:0
All time:5,685
This week:202Up
User Comments (1)
For more information send a message to info at phpclasses dot org.