PHP Classes

PHP Chunk: Extract chunks from large XML files

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 524 All time: 5,691 This week: 206Up
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
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:524
This week:0
All time:5,691
This week:206Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1516