Login   Register  
PHP Classes
elePHPant
Icontem

Class: PHP Chunk

  Classes of Dom Hastings  >  PHP Chunk  >  Download  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Chunk Support forum
Base name: phpchunk
Description: Extract chunks from large XML files
Version: 0.1
Required PHP version: 5.0
License: GNU General Public License (GPL)
All time users: 297 users
All time rank: 4819
Week users: 0 users
Week rank: 3648
 
  Author   Group folder image Groups   Detailed description  
  Rate classes User ratings   Applications   Related links   Files Files  

Author

Picture of Dom Hastings
Name: Dom Hastings <e-mail contact>
Published packages: 4 Browse this author's classes Browse this author's classes
Country: United Kingdom United Kingdom - PHP jobs in United Kingdom
Home page: http://www.dom111.co.uk/
Age: ???
All time rank: 1329
Week rank: 1550

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

Groups

Group folder image XML XML parsing and generation View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Files and Folders Listing, accessing and manipulating files and folders View top rated classes

Detailed description

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.

User ratings

Not yet rated by the users

Applications that use this class

No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.

Related links

Link Description
Blog post Blog post

Files

File Role Description
Plain text file chunk-test.xml Data Simple data
Plain text file class.chunk.php Class Main class file
Plain text file complex-test.xml Data Example complex data
Plain text file index.php Example Example implementation
Download all files: phpchunk.tar.gz phpchunk.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.