Login   Register  
PHP Classes
elePHPant
Icontem

Saxophone: PHP stream handler to search XML with XPATH

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-03-10 (6 months ago) RSS 2.0 feedNot enough user ratingsTotal: 279 This week: 1All time: 6,694 This week: 1,447Up
Version License PHP version Categories  
saxophone 1.0.9GNU General Public Lice...5.0HTML, XML, Searching, Parsers
Description Author  

This class is a PHP stream handler to search XML with XPATH or tag name.

It allows opening a XML document using fopen('sax:...').

The class can parses the XML document and search it using XPATH expressions to match the document data that is returned when the stream reading functions are called.

Innovation Award  
PHP Programming Innovation award nominee
October 2013
Number 2


Prize: One downloadable copy of CodeLobster Professional
Some applications need to parse XML documents for extracting records of information that are stored in a certain structure.

This class can simplify the extraction of information from XML documents.

It uses the PHP streams support to open a virtual file with a name that includes the actual XML document file to parse, as well the format of the path of the XML elements to be extracting.

The XML elements path definition can be specified as a XPATH expression.

Using regular PHP file opening and reading functions it can return the XML elements that match the search expression.

Manuel Lemos
Picture of Juraj Puchký
Name: Juraj Puchký <contact>
Classes: 2 packages by
Country: Czech Republic Czech Republic
Age: 32
All time rank: 272229 in Czech Republic Czech Republic
Week rank: 787 Up5 in Czech Republic Czech Republic Up
Innovation award
Innovation award
Nominee: 1x

Screenshots  
  • Saxophone.png
  • Sample-1.01.png
  Files folder image Files  
File Role Description
Accessible without login Plain text file README.TXT Doc. Singing song untill im on the orbit
Accessible without login Plain text file sample.php Example Saxophone sample
Accessible without login Plain text file sample.txt Output Saxophone sample results
Accessible without login Plain text file sample.xml Data Saxophone sample data
Plain text file Saxophone-1.0.9.php Class Saxophone 1.0.9 class file

 Version Control Unique User Downloads Download Rankings  
 0%Total:279All time:6,694
 This week:1This week:1,447Up